Subject CreateBlobStream error
Author Alfred Thomas
Hi all

I am busy converting an application from IBX to IBO. Code that used to work
now doesn't.
I am finding an image(BLOB field) in a table and displaying it.

The code(C++ builder) is as follows:

FindQuery->Close();
FindQuery->ParamByName("AuthorityCd")->AsString = AuthorityCd->Text;
FindQuery->ParamByName("IDNumber")->AsString = IDNumber->Text;
FindQuery->Open();
if(FindQuery->Eof && FindQuery->Bof)
{
ShowMessage("No Record found");
return;
}
TJPEGImage * JPEG = new TJPEGImage();

JPEG->LoadFromStream(FindQuery->CreateBlobStream(FindQuery->FieldByName("War
rantImage"), bmReadWrite));
Image->Picture->Bitmap->Assign(JPEG);
delete JPEG;

The line:
JPEG->LoadFromStream(FindQuery->CreateBlobStream(FindQuery->FieldByName("War
rantImage"), bmReadWrite));

causes an error JPEG error #41. What is the difference between IBX and IBO's
CreateBlobStream?

Regards
Alfred Thomas