Insert raw file data into BLOB (“OLE Object”) field of Access table using ADO
问题 I am trying to insert a file into MS Access database, into a field of OLE Object type. I am using C++ and ADO . Currently I get error Invalid pointer error . I think that my problem is mishandling variants since this is the first time I use them. I am learning from this code example but have problem understanding how to insert file from disk into variant . They read it from database, and copied it into new record so the part where I read file from disk and then insert it into variant is