Subject | RE: AW: [IBO] Re: Storing PDF into Firebird Blobs |
---|---|
Author | IBO Support List |
Post date | 2012-05-21T15:16:38Z |
What's the problem with TIB_Column.LoadFromFile() and
TIB_Column.SaveToFile()?
Seems to me you are way over-complicating things.
Jason
-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf
Of Terry Black
Sent: 21 May 2012 05:35 AM
To: IBObjects@yahoogroups.com
Subject: Re: AW: [IBO] Re: Storing PDF into Firebird Blobs
Hi Herbert, If I use WriteFromFileToBlob('C:\db\dell.pdf',
DM.qrScan.FieldByName('PDFIMAGE'));
this puts the PDF file into the blob, but I am having trouble getting it
out and displaying it.
If I try the reverse
procedure TfrMain.Button5Click(Sender: TObject);
var xxx:string;
begin
ReadFromBlobToFile(DM.qrScan.FieldByName('PDFIMAGE'),xxx);
end;
it does not work.
Terry
Terry Black
IT Manager
Northern Sydney Central Coast
Public Health Unit (Hornsby Office)
[Non-text portions of this message have been removed]
TIB_Column.SaveToFile()?
Seems to me you are way over-complicating things.
Jason
-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf
Of Terry Black
Sent: 21 May 2012 05:35 AM
To: IBObjects@yahoogroups.com
Subject: Re: AW: [IBO] Re: Storing PDF into Firebird Blobs
Hi Herbert, If I use WriteFromFileToBlob('C:\db\dell.pdf',
DM.qrScan.FieldByName('PDFIMAGE'));
this puts the PDF file into the blob, but I am having trouble getting it
out and displaying it.
If I try the reverse
procedure TfrMain.Button5Click(Sender: TObject);
var xxx:string;
begin
ReadFromBlobToFile(DM.qrScan.FieldByName('PDFIMAGE'),xxx);
end;
it does not work.
Terry
Terry Black
IT Manager
Northern Sydney Central Coast
Public Health Unit (Hornsby Office)
[Non-text portions of this message have been removed]