exception on TBlobField

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ymzl99
Posts: 1
Joined: Sun 16 Nov 2008 09:46

exception on TBlobField

Post by ymzl99 » Sun 16 Nov 2008 10:16

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.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 17 Nov 2008 09:17

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.

Post Reply