Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting an oracle 9 BLOB record
Message
De
30/03/2005 14:46:19
 
 
À
30/03/2005 14:09:36
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexique
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01000032
Message ID:
01000049
Vues:
19
>Hi, does anyone know how can I insert a blob record in an oracle database?
>
>I've tried this but it doesn't work:
>
>cFile=FILETOSTR('c:\background1.jpg') * this file is 2k in size
>cQuery = "insert into prueba_blob (blob_id,blob_1) values (1,"+cFile+")"
>nReg=SQLEXEC(nHnd,cQuery,'curResult')
>
>the message from oracle is:
>missin comma
>or
>invalid caracter
>
>Any ideas?
>Thanks in advance

VFP version ?

You can try:
cFile=FILETOSTR('c:\background1.jpg') * this file is 2k in size
cQuery = "insert into prueba_blob (blob_id,blob_1) values (1,?m.cFile)"
* or
cQuery = "insert into prueba_blob (blob_id,blob_1) values (1,0h"+STRCONV(m.cFile,15)+")"
* or
cQuery = "insert into prueba_blob (blob_id,blob_1) values (1,0x"+STRCONV(m.cFile,15)+")"

nReg=SQLEXEC(nHnd,cQuery,'curResult')
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform