Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Storing a picture
Message
De
21/03/2003 15:34:45
 
 
À
21/03/2003 15:26:00
Fabian Belo
Independent Developer
Argentine
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
00768632
Message ID:
00768762
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform