Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing and displaying picture
Message
From
30/05/2003 12:00:51
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
30/05/2003 02:32:42
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00794377
Message ID:
00794554
Views:
10
>Hi
>
>I a number of graphics in my application and want to be able to :
>
>a) store them in a table and display them on my form
>b) imbed them in my program.
>
>By and large I dont want to distribute the as additional files.
>
>I thought I could use a general field to store them but cant get them out onto my form.
>
>Is a) and/or b) possible???
>
>Regards
>Geoff Scott

One problem of general fields is the one you mention: it is very tricky to get the data back out again. Another problem is that they use a terrible amount of space - a 50 KB JPG file can easily inflate the FPT file by more than 1 MB.

The usual approach is to save the information in separate files. As an alternative, you can use memo fields (memo binary, that is), and write the information to temporary files when you require it.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform