Problem Reading blob field

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply

Problem Reading blob field

Post by Guest » Wed 08 Jun 2005 17:42

I am having troubles reading data from a Blob field on a Query.

The following test code excutes, the first three lines do as they should, the actually Read method of the blob acts like Write though.

TBlob *Test = m_pQry->GetBlob("Pins"); // Works
AnsiString test = m_pQry->FieldByName("Pins")->AsString; // Works
m_pQry->GetBlob("Pins")->SaveToFile("c:\Test.txt"); // Works
iBytes = Test->Read(0, 1000, m_pPinBlob); // Sets size of blob to 1000 blanks it (as if its doing a write)

Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Thu 09 Jun 2005 12:41

It seems you use the old version. Please download the last SDAC build (

Post Reply