Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I use VFP8 to change the Windows wallpaper
Message
From
26/07/2004 21:20:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/07/2004 21:17:14
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00927836
Message ID:
00928152
Views:
27
>Hi, Mike
>You mean I need to create a dbf file and create 1 binary field
>to store the image and then use STRTOFILE() to save it
>to a separate file when use the image. Am I right?
>
>Then How to save a picture (bmp or jpg) into a binary field ?
>
>Please advise.
>
>Derek

If you use a General field, it is easy to get images in, but difficult to get them out.

Better use memo(binary).

To save an image to the memo:
replace MyMemo with FileToStr("MyImage.jpg")
To save the memo to a file, use StrToFile().
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
Next
Reply
Map
View

Click here to load this message in the networking platform