Subject AW: AW: [IBO] Re: Storing PDF into Firebird Blobs
Author Herbert Senner
Of course you're right, Jason.



It's straight forward to use these built-in IBO procedures when writing to
and reading from files.



In former times when I wrote my functions I was not aware of
them and had knowledge only about the TIB_BlobStream.CreateForColumn
procedure
and I had to help myself with this loop way.



So, Terry, the code for reading the pdf would be:



DM.qryScan.FieldByName('PDFIMAGE').LoadFromFile(myPath + '\myPdf.pdf')


and for writing to a file:



DM.qryScan.FieldByName('PDFIMAGE').SaveToFile(myPath + '\myPdf.pdf')



Herbert



Von: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] Im Auftrag
von IBO Support List
Gesendet: Montag, 21. Mai 2012 17:17
An: IBObjects@yahoogroups.com
Betreff: RE: AW: [IBO] Re: Storing PDF into Firebird Blobs





What's the problem with TIB_Column.LoadFromFile() and
TIB_Column.SaveToFile()?

Seems to me you are way over-complicating things.

Jason






[Non-text portions of this message have been removed]