Subject | Re: Storing PDF into Firebird Blobs |
---|---|
Author | Aage Johansen |
Post date | 2012-05-13T17:57:38Z |
Terry wrote
Blob would be Sub_type 0. I have had a look at some of the code used
in some earlier examples.
Do I have to use the TIB_Dataset>createBlobStream method?
Could someone please give me an example of the code I should use.
Lets assume I have a PDF file at c:\xyz.pdf how would I read this into a blob?
dsqlPICTURE.ParamByName('PICT').LoadFromFile('C:\XYZ.pdf');
--
Aage J.
>>Hi, I want to store PDF files into Firebird BLOBs. I assume that the
Blob would be Sub_type 0. I have had a look at some of the code used
in some earlier examples.
Do I have to use the TIB_Dataset>createBlobStream method?
Could someone please give me an example of the code I should use.
Lets assume I have a PDF file at c:\xyz.pdf how would I read this into a blob?
>>With a prepared DSQL component you can use somethinglike:
dsqlPICTURE.ParamByName('PICT').LoadFromFile('C:\XYZ.pdf');
--
Aage J.