Subject | Retrieve blob text from dynamic query fails, why? |
---|---|
Author | hamacker |
Post date | 2014-10-22T16:45:38Z |
Hi, everybody.
My Delphi is XE5 and IBO 5.5.3_2068, every time that I need to retrieve blob text data from a field, as bellow, fail.
var
blobStream:TIB_BlobStream;
m:TIB_Query;
begin
m:=TIB_Query.Create(Self);
(...)
m.Open;
blobStream:=m.CreateBlobStream(m.FieldByName('sinopse'), bsmRead);
memo1.Lines.LoadFromStream(blobStream); // always empty
FreeAndNil(blobStream);
(...)
To workaround I change to:
memo1.Lines.Text:=m.FieldByName('sinopse').AsString;
But I dont know if is correct retrieve blob text using AsString.
But I would like to know, why fails using blobStream?