What I'm trying to do is, store the members' photo with the following code:
Code: Select all
with UniQuery1 do
begin
SQL.Clear;
SQL.Add('select * from members where identity_no = ''' + sEdit2.Text + '''');
Execute;
Edit;
TBlobField(Fields[4]).LoadFromFile(ImageFile);
Post;
end;
but I'm receiving an error saying "Active Transaction is required for working with large objects".
What's the problem here?
Thank you in advance.