Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy a PDF file into Informix BLOB
Message
 
 
To
12/06/2003 09:36:33
Carlos Mergal
US Bankruptcy Court - Puerto Rico
San Juan, Puerto Rico
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00799331
Message ID:
00799336
Views:
26
Maybe this could help How to work with Image field type on SQL Server (binary data)? FAQ #7995 ?

>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform