General information
Title:
Copy a PDF file into Informix BLOB
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only