Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to store an image in a table
Message
De
02/02/1999 09:51:02
Kenneth Downs
Secure Data Software, Inc.
New York, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
00182906
Message ID:
00182918
Vues:
16
Ken,

Nice to see you here!

FWIW, I used to store images in tables and gave it up as difficult and ultimately not worthwhile. If you must, you do it like so:

CREATE TABLE MyTest (cPicName C(10),gPicture G(4))
APPEND BLANK
REPLACE cPicName with "Test"
APPEND GENERAL gPicture From "C:\MyPath\Test.BMP"

To empty out the picture, use:
BLANK FIELDS gPicture

However, I still think it's a bad idea, merely MHO. I store paths to pictures and access them at run-time. I've found it infinitely easier.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform