Posted on 1998-12-17
I'm using CRecordset and CLongBinary to insert image into SQLServer6.5 database. I did call SetFieldDirty() after I called AddNew(), then I read image out of a image file into the buffer I allocated. The data pointer in the CLongBinary object points to the data buffer. But after update() call, the image field still seems to be null. No exception was thrown. Everything seems to be ok except when I look at the table, the field is null. Why?