Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
kowal
Posted - Oct 15 2024 : 09:40:07 Hello,
I'd like to save and read the documents in PDF format in the database BLOB fields using TImageEnView.PdfViewer but I'm not sure if it's possible and how to try to do it. Can I get some information about it?
regards S. Kowalski
3 L A T E S T R E P L I E S (Newest First)
kowal
Posted - Oct 18 2024 : 08:29:12 Hello thanks for advice - it works OK
Here is the snippet of my code
var bstream: TStream;
begin
bstream := dset.CreateBlobStream(fld, bmRead);
try
imageEnView.PdfViewer.Enabled := True;
imageEnView.PdfViewer.LoadFromStream(bstream);
finally
bstream.Free;
end;
end;
Posted - Oct 15 2024 : 16:28:35 One way would be to create a stream for the BLOB field and LoadFromStream. Something similar to this (adhoc code, untested):