Mydac 5.00.1.6 no longer support TBlobField??

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
kaffeburk
Posts: 214
Joined: Mon 29 Jan 2007 08:03

Mydac 5.00.1.6 no longer support TBlobField??

Post by kaffeburk » Fri 27 Apr 2007 06:37

When i try this code:

myBlob := mydata.mail_qry.FieldByName ('m_body') as TBlobField;
memo1.Lines.Add('blobsize'+inttostr(myBlob.BlobSize));

the result is always zero, and the field is not zero.

I tryed some old programs i made that is using the same statmens. They worked fine. Then I recompiled with mydac 5.0016 and then they to stop working.

/Pär

kaffeburk
Posts: 214
Joined: Mon 29 Jan 2007 08:03

Post by kaffeburk » Fri 27 Apr 2007 07:35

Have to add, small blobs like 1-2 k seams to work. But a larger emailbody or a jpeg not.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Fri 27 Apr 2007 07:54

I could not reproduce the problem. I tested BLOBs larger than 4.5 MB.
Please send me a complete small sample at evgeniyd*crlab*com to demonstrate it, including script to create and fill table.
Also supply me the following information:
- exact version of Delphi or Kylix;
- exact version of MySQL server and MySQL client. You can see it in the Info sheet of TMyConnection Editor.

kaffeburk
Posts: 214
Joined: Mon 29 Jan 2007 08:03

Post by kaffeburk » Fri 27 Apr 2007 10:43

I restarted my computer, that did it. Sorry...

Post Reply