FireMonkey download or open blob file from oracle database

  

In oracle 11g database I have blob file (eg. pdf, jpg). What is the best solution to download or open this file on mobile device from firemonkey aplication on button click.

With this example I load blob (jpg) in Timage, any solution to download or open in some mobile viewer.

var
BlobStream: TStream;
begin
BlobStream := TMemoryStream.Create;
queryBlob.Open;
queryBlob.GetBlob(queryBlob.FieldByName(‘PICTURE’)).SaveToStream(BlobStream);
Blobstream.Position := 0;
img1.Bitmap.LoadFromStream(BlobStream);
BlobStream.Free;
end;

Comments are closed.