Reading BLOB field
Posted: Thu 17 May 2012 09:40
Hello,
I am trying to read blob field into stream but without success. Could you please point me the right way to do it.
This is my code:
TUniQuery *q = new TUniQuery(NULL);
q->Connection = MyConnection;
q->SQL->Text = "select blob_field from mytable";
q->Open();
TStream *st = q->CreateBlobStream((TBlobField *) q->FieldByName("BLOB_FIELD"),bmRead);
******Error: Field is not BLOB!
Thank You
I am trying to read blob field into stream but without success. Could you please point me the right way to do it.
This is my code:
TUniQuery *q = new TUniQuery(NULL);
q->Connection = MyConnection;
q->SQL->Text = "select blob_field from mytable";
q->Open();
TStream *st = q->CreateBlobStream((TBlobField *) q->FieldByName("BLOB_FIELD"),bmRead);
******Error: Field is not BLOB!
Thank You