Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
JPEG and file size
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00225051
Message ID:
00225243
Views:
13
>Stephen,
>
>I have used JPEG files in VFP since the FoxPro DOS days using Espia. I have always copied the JPG file into a MEMO field and NEVER used the General Field. It works very well. In fact, I subclassed the IMAGE control to add the capabilities of reading the JPEG data directly from the MEMO field like ESPIA did when we got VFP 6.0 at the conference last May in Orlando. This works like a champ. You can use the StrToFile() method to have a quick way of outputting a temporary file for the Image to be displayed from since the IMAGE control needs a filename to display a JPEG.
>
>lcImage = SomeTable.MemoField
>StrToFile(lcImage,"SOMEFILE.JPG")
>Image.Picture = "SOMEFILE.JPG"
>
>Get the Picture? :-) No Pun Intended!

Rich,

good tip, thanks. I'm also an old and satisfied user of Espia and was wondering about espia and vfp 6.0, should i use it or not ... I'll continue to use it for scanning, but I'll give your tip a try for this part of the job.
Vlad-Georg
Previous
Reply
Map
View

Click here to load this message in the networking platform