Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pictures in general fields
Message
 
 
À
14/09/2001 08:21:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
00556390
Message ID:
00556455
Vues:
17
Hi!

Data in general field stored by different way for different kinds of files. Thus there are no generic way, though you can figure out how to strip out the file from general field for each file type. You can read general field as a binary string and extract the file content from there (usually it is at the fixed position).

Better store content of image in the memo field created with NOCPTRANS option (memo binary). You can use FileToStr for that or AAppnd Memo command. In such case it will take less space and you always can extract file and place it in the general field temporarily to, for example, print images.

Popular approach also is to use the file path to the image file stored in the character field. This way you also can print and display images in grid without general field...

P.S. If your database is not the VFP backend, there are some problems that have workarounds.

>I need a general solution to programmaticly convert pictures stored in general fields to picture files. It should process BMPs,JPGs,TIFFs,GIFs,etc. The essential point is that it should work independently of the app originally placed the picture into the gen field. Any suggestions?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform