>Hi,
>
>Is there a way to convert an image stored in the clipboard into raw binary data (to be stored in a memo field)? For example, if I right click on a photograph on a web page and select "Copy", the photograph is stored to the clipboard in some kind of picture/image format (maybe bmp?). The stored clipboard image is not accessible as binary data at that point. I would like to convert the clipboard image back into its original binary data format, so that I can store it in a memo field. Is this possible?
>
>My ultimate goal is to store binary data of images, and be able to convert that data back into their original picture file formats (jpg, gif, bmp, etc.)at some later point.
>
>Also, is there some way to convert an image stored in a general field, back into it's original binary data?
>
>Dave
Hi Dave. You can store any binary data into binary memo fields. You can write binary memo fields out to disk. Also check out FILETOSTR() and STRTOFILE() functions amongst others. Be aware of memo file bloat - updating the memo field of the same record creates "bloat" and will add excess size to the FPT file. Will you be updating these memo fields? Also, note that the memo file (and VFP file) has a max size of 2Gb. What is the average size of your images and how many do you want to save? The usual technique is to leave the images on disk and use a char field to hold the drive+path to the image.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.