Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Images
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Images
Miscellaneous
Thread ID:
00656151
Message ID:
00656746
Views:
8
If you want to store the physical contents of the file without using a general field then you can use a memo field and the filetostr() function.
lcRawData = filetostr("c:\test.bmp")

insert into imagetable (imagememo) values (lcRawData)
To get the image back use the complementary strtofile() function.
lnBytesWritten = strtofile(imagetable.memo, "c:\test2.bmp")
However I prefer to store the path to the file as opposed to the physical contents in a memo.
Previous
Reply
Map
View

Click here to load this message in the networking platform