Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy a PDF file into Informix BLOB
Message
De
12/06/2003 09:36:33
Carlos Mergal
US Bankruptcy Court - Puerto Rico
San Juan, Porto Rico
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Copy a PDF file into Informix BLOB
Divers
Thread ID:
00799331
Message ID:
00799331
Vues:
64
Hello ALL:

We are trying to copy a PDF file into a byte variable (BLOB) in an Informix table. Does anybody knows how? I tried the FILETOSTR function but for some reason I'm not able to paste the resulting value to the SQL I have to pass to Informix. The code I have so far looks something like this:

img=FILETOSTR("welt.pdf")
sqlstmt= "UPDATE document SET dm_doc = '"+img+"' where dm_pages=99"
res=SQLEXEC(gconn, sqlstmt)


Any Ideas are very welcome.

TIA,

Carlos
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform