Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert Image in general field via program
Message
From
03/04/2007 20:05:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
03/04/2007 16:13:41
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Miscellaneous
Thread ID:
01211786
Message ID:
01211862
Views:
13
>I have create a general field 'Mypicture' and have been able to insert and *.bmp file into it. However, I would like to insert the image via a program to allow the user to select from a dialog box and add the image themselves. So far, I have to open the general field and Edit->insert object- select "Create from file" and select the bitmap file to add.
>
>If there is a way to do this with a VFP command, it would be greatly appreciated.
>
>Thanks in advance,
>
>Craig

The reasons (I think) others replied recommending not to use general fields (I don't recommend them either), is mainly:

1) It is easy to get data into a general field. It is very tricky to get information back out again.
2) General fields take up too much space. A 50 KB JPEG (JPG) picture might make your database increase by more than a MB, for example.
3) With this size bloat, it is easy to pass the VFP limit, of 2 GB per file.
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