I am migrating a VFP 9 application to SQL Server. A VFP application has several tables with “common” fields in them. I get an array of bytes when I request a field, and when I save it to disk, I can look inside and see it in a text document or BMP Paint, etc.
From reading, I found that the common field is a proprietary format and contains a thumbnail image of the preview document (among other things, I'm sure).
Can someone point me to some code that will first extract the file type and then the actual file data that I can save as the source file. (Getting a preview image would be nice too.)
Apparently, on the same day, someone wrote a program in foxpro called GENTOFIL.PRG, which sounds like it converts common fields into a file. But, google does not help trying to find it!
source
share