Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RE: Extracting .PIC File from General Field in FoxPro T
Message
 
To
09/07/1998 04:36:35
Arnold Lee
K&A International Co.,Ltd
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00110629
Message ID:
00116047
Views:
42
Have a look at the first few bytes of some on-disk PIC files - there'll probably be an identifying string a few bytes long (e.g. MZ01PIC or the like).

Then scan the general field for this - that will provide the offset and also be a little more robust than the magic-number method.

If you are VERY lucky, the files will also have a trailing pattern (at the end of the file).

There are a number of web-sites that have the structure of files - I'm away from the office at the moment, but if you e-mail me I'll send you them on (my!) Monday.

(I've successfully used the above to extract Adobe Acrobat and Word files from Access 2.0 OLE files...just converting to VFP)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform