Subject | RE: [IBO] Storing PDF into Firebird Blobs |
---|---|
Author | Terry Black |
Post date | 2012-05-13T22:52:09Z |
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
You can also just do the MyField.LoadFromFile() or MyField.SaveToFile() as
well.
Jason
-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf
Of Terry Black
Sent: 13 May 2012 06:29 AM
To: IBObjects@yahoogroups.com
Subject: [IBO] Storing PDF into Firebird Blobs
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?
Terry
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.
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
>>> "IBO Support List" <supportlist@...> 14/05/2012 1:56 am >>>CreateBlobStream( ) is what you use.
You can also just do the MyField.LoadFromFile() or MyField.SaveToFile() as
well.
Jason
-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf
Of Terry Black
Sent: 13 May 2012 06:29 AM
To: IBObjects@yahoogroups.com
Subject: [IBO] Storing PDF into Firebird Blobs
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?
Terry
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.