Page 1 of 1

exception on TBlobField

Posted: Sun 16 Nov 2008 10:16
by ymzl99
Following is the code:
with MyQuery do
begin
if not Active then Open;
Append;
FieldValues['name']:='abc';
FieldByName('Graphic').Assign(Image.Picture.Bitmap); //???
Post;
end;

Graphic is a field of TBlobField. (DELPHI 7, MYSQL 5.0.67, WINXP)
when running, there would be an exception: invalid Blob position.

Posted: Mon 17 Nov 2008 09:17
by Dimon
I could not reproduce the problem.
Please send me a complete small sample at dmitryg*devart*com to demonstrate it, including script to create and fill table. Also supply me the exact version of MyDAC. You can see it in the About sheet of TMyConnection Editor.