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:
00225880
Views:
12
Tim,

There are several ways to get the image into the memo field.

1. Use APPEND MEMO memofield FROM 'image.jpg' OVERWRITE
2. Use the lcImage = FileToStr('image.jpg.').
REPLACE MEMO WITH lcImage

I have used MEMO fields since the early 90's to support images in my school software under DOS using ESPIA. However, the FileToStr() and StrToFile() methods are extremely fast and are easy to use. Plus you can parse the data to see if it is an image file or get info about the image as well. However, there are other ways to get image info such as oImage = LOADPICTURE('image.jpg') and then you can use the oImage.Width and oImage.Height properties which are in TWIPS to get the actual pixel dimension for the image.
Previous
Reply
Map
View

Click here to load this message in the networking platform