Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to insert image into mysql table with vfp
Message
 
 
À
22/03/2010 00:04:40
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:
01455988
Vues:
49
>Thanks Naomi
>I use BLOB
>but I can't view my image from sqlexec command
>SQLExec(lnHandle,"select * from image")
>browse
>the image field type is General
>It gives error message when I dbl click into the image column
>"OLE object is invalid or corrupted"
>
>
>
>What is the type of the Image column in the MySQL? Did you try
>
>myPicture = filetostr('MyPictureFile.jpg') ?

You need to map the Image to memo binary using setcursorprop function.

See Re: Store pictures on SQL server Thread #1422743 Message #1422754

CURSORSETPROP("MapBinary", .T., 0)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform