I tried to install zeos 8 from svn, but I got this issue when I use createblobstream function, as it says I have to close the lob streams before closing the resultset... but I think the resultset is still in use at this time...
Code: Select all
jmst : TMemoryStream;
....
jquery := TZQuery.Create(nil);
try
with jquery do
begin
connection := modules.jconnect;
SQL.Clear;
SQL.add('SELECT * FROM PARAMS WHERE NOM=:NOM');
ParamByName('NOM').AsString := 'IMGUSR_' + IntToStr(curusr);
Open;
if RecordCount > 0 then
begin
jmst := tmemorystream.Create;
jmst.loadFromStream(CreateBlobStream(FieldByName('DATAS'), bmread));
....
Best regards !