Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I store a jpg in a general field and show on a form
Message
From
16/12/2003 19:47:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
16/12/2003 16:49:49
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00859682
Message ID:
00859730
Views:
15
>I'm adding pictures to a VFP app for the first time. I created a table with a general field, used append general to add a jpg file, and made it the control source of an oleboundcontrol on a form. I didn't like the result. Then I added an image to the form and linked the same jpg to the image with the picture property.

Most programmers around here don't use General fields, at least, not for long-term storage. There are several problems involved.

The recommendes alternatives are either: 1) Store separate files (for instance, JPG), and keep the filename in a short character field, or in a memo field. 2) Copy the desired files to a memo(binary) field, and copy it back out when you need it.

>
>I like the quality of the image/picture property better, but I thought I'd be able to store the jpg files in the general field of a table.
>
>Is there a better way to do this?
>
>Thanks,
>Larry Morelli
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