Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database Image Posting Question?

Status
Not open for further replies.

cjtaylor

Programmer
Aug 12, 2001
69
US
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
 
I found out that the DBimage component that i was using didn't support jpeg's, so when I loaded a jpeg file , I could view it but not save it. When I pasted the graphic into the component the component was changing the format to a bitmap so it would save properly. If you find a DB component compatible with your file format it will probably work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top