Subject | RE: [IBO] Storing PDF into Firebird Blobs |
---|---|
Author | IBO Support List |
Post date | 2012-05-13T15:56:20Z |
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
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