Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to insert image into mysql table with vfp
Message
De
24/03/2010 22:06:14
Hee Lim Wang
Fantasy Software Enterprise
Malaisie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01455978
Message ID:
01457088
Vues:
43
strtofile(tmp.bImage, 'c:\myPicture2.jpg')
c:\myPicture2.jpg is the same as myPicture.jpg and can be added into Image1 control manually
but cannot auto added with program coding......

>CURSORSETPROP("MapBinary", .T., 0)
>SQLExec(lnHandle,"select bImage from TableImage","tmp")
>Thisform.Image1.Picture=strtofile(tmp.bImage, 'c:\myPicture2.jpg')
>thisform.Refresh
>
Program error : Data type is invalid for this property


if I use pictureval
>Thisform.Image1.Picture=strtofile(tmp.bImage, 'c:\myPicture2.jpg')

Error with Image1 : PictureVal : property value is invalid.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform