Subject [IBO] Re: Storing PDF into Firebird Blobs
Author Terry Black
Thanks

Terry

IT Manager | Public Health Unit Hornsby | Health Reform Transitional Organisation Northern
Hornsby Hospital, Main Building 1, 36-76 Palmerston Road, Hornsby NSW 2077
Tel. 02 9477 9400 | Fax. 02 9482 1650 | tblac@...
www.health.nsw.gov.au


>>> Aage Johansen <aagjohan@...> 14/05/2012 3:57 am >>>
Terry wrote
>>
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.


Disclaimer: This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender.

Views expressed in this message are those of the individual sender, and are not necessarily the views of the Local Health District or associated entities.