Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing a picture
Message
From
21/03/2003 15:34:45
 
 
To
21/03/2003 15:26:00
Fabian Belo
Independent Developer
Argentina
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00768632
Message ID:
00768762
Views:
16
Good idea Fabian, but I would make one recommendation. Use APPEND MEMO ... AS 0 (or define the memo field using NOCPTRANS) to keep code pages from inadvertantly translating something in the binary image.




>I do not recommend to store images (whatever format is) in tables because obvious memory reasons, but an alternative instead general fields (worst election) is memo fields which is more convenient than general.
>i.e.
>
>Adding:
>
>
>select table1
>append blank
>replace name_id with "Image1"
>APPEND MEMO table1.img from "Path_FileName" overwrite
>
>
>Showing:
>
>
>*** Change file extension for BMP or GIF
>lcFile = SYS(2023)+"\"+Sys(3)+".JPG"
>Copy Memo table1.Img to (m.lcFile)
>thisform.Image1.Picture = m.lcFile
>
>
>
>>Is there a way in VFP to store a bmp file inside a VFP database? I would like to do this like can be done in Access.
>>
>>Any ideas?
>>
>>Thanks
>>
>>Alan Wyne
>>IS Manager
>>Rollpak Corp
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform