Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Blob with MySQL
Message
De
01/05/2009 06:46:53
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Using Blob with MySQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Divers
Thread ID:
01397385
Message ID:
01397385
Vues:
135
Hii all,
Can anyon tell me how to store and retrieve an image in MySQL BLOB field.
I'm already using FileToStr() and StrToFile() function which are works fine in VFP native table, but still not work when try to update MySQL table.
This is My Code to update MySQL Table. Thanks


Local MCommand, MPict, MPict1

MPict = FiletoStr("C:\AVFP\SWIFT.JPG")
MCarId = "SWIFT"
MPict1 = Cast( MPict1 AS BLOB )

MCommand = "Update Cars Set Pict1 = ?MPict1 Where CarId = ?MCarId"

SQLEXEC(M_IdConnection, MCommand)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform