I have an image component attached to a blob field in my db, when I execute the following code the image is cleared from my image control and the database is not updated with the new image. But, if I copy and paste the image into the image control then call the post method, the database is updated properly. Does anyone know what the difference may be?
sFile = OpenPictureDialog1->FileName;
DBImageEx2->Picture->LoadFromFile(sFile);
DataMod->StoresTable->Post();
Thanks
Chris Taylor
sFile = OpenPictureDialog1->FileName;
DBImageEx2->Picture->LoadFromFile(sFile);
DataMod->StoresTable->Post();
Thanks
Chris Taylor