VENKAT
asked on
Saving Image to DBF table.
I placed 'DBIMAGE'component on my form which connect to DataSource and Datafield and using popup menu I load image from my ClipBoard with follow lines of code in runtime.
Table1.Open;
DBImage1.PasteFromClipboar d;
But I failed to save that image to my DBF table which got MEMO field inside.
Can anybody help me to save a image to my DBF table(memo field) from my form.
Table1.Open;
Table1.Edit;
DBImage1.PasteFromClipboar d;
Table1.Post;
If I try to put Edit and Post to above code its giving "Stream Read Error"..
Please help me asap. Thank you.
Table1.Open;
DBImage1.PasteFromClipboar
But I failed to save that image to my DBF table which got MEMO field inside.
Can anybody help me to save a image to my DBF table(memo field) from my form.
Table1.Open;
Table1.Edit;
DBImage1.PasteFromClipboar
Table1.Post;
If I try to put Edit and Post to above code its giving "Stream Read Error"..
Please help me asap. Thank you.
ASKER
Can you tell me how to use/create BLOB field. Actually I dont know what is BLOB field. Can u please help me clearly. Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
if u have Dbase IV or Paradox then use Deliphi menu Tools -> database desktop to create the table.
HTH ;)
Senthil Kumar.
if u have Dbase IV or Paradox then use Deliphi menu Tools -> database desktop to create the table.
HTH ;)
Senthil Kumar.
When working with images and databases I allways use to save on the database only the path where the image file is located on my HD, this ensures that my database wont grow too much, and wont get corrupt so often.
Follow this link and download a demo:
www.victory.hpg.com.br/Samples/ParadoxAndImages.zip
Hope it helps!
VSF
www.victory.hpg.com.br
Follow this link and download a demo:
www.victory.hpg.com.br/Samples/ParadoxAndImages.zip
Hope it helps!
VSF
www.victory.hpg.com.br
I agree with VSF about storing the actual image files outside the database.
BTW...BLOB = Binary Large OBject
BTW...BLOB = Binary Large OBject
Far more safe!
VSF
VSF
ASKER
your comments helped me to find a way to solve my things.Thank u.
If you want to save images, use a BLOB field.