Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extract picture data from memo field.
Message
De
23/07/2002 13:50:04
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Titre:
Extract picture data from memo field.
Divers
Thread ID:
00681802
Message ID:
00681802
Vues:
47
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!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform