Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to store an image in a table
Message
From
02/02/1999 09:51:02
Kenneth Downs
Secure Data Software, Inc.
New York, United States
 
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00182906
Message ID:
00182918
Views:
17
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform