Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extract picture data from memo field.
Message
From
23/07/2002 13:50:04
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Title:
Extract picture data from memo field.
Miscellaneous
Thread ID:
00681802
Message ID:
00681802
Views:
49
Hi All

A colleague and I are thinking about extracting data into a stream. This results from the fact that CursorToXML doesn't support general fields. Last night we looked at the structure of the memo field. We're using a BMP picture which was displayed using MS Paint.

The VFP docs explained some stuff, but we couldn't confirm this information. The docs say the general field holds a 10 byte pointer into the memo file (.FPT). Looking at the DBF with a Hex Editor, it seems this is a 4 byte number. We couldn't decode this number. Can someone help with that?

The size of the image file is stored in the memo file. I know its MSB, LSB formatted, but converting this from Hex to Decimal didn't return the byte size of the file as reported by the OS.

Basically, we want to return the picture as a stream of bytes from the memo field. This involves locating the data first and then reading it, probably using FOPEN/FREAD().

Thanks!
Next
Reply
Map
View

Click here to load this message in the networking platform