Page 1 of 1

how to get data and length from raw and long raw fields

Posted: Thu 07 Jan 2010 11:38
by mch
I am trying to get binary data from a raw field using "getBinary()" method that returna an unsigned char* that is exactly what I need , but the problem is that I dont know how to get the size of returned data.

I will appreciate if someone can help with this.

Posted: Fri 08 Jan 2010 08:39
by Dimon
To solve this problem you should use the TBlob.Size property, like this:

Code: Select all

Blob := MyQuery1.GetBlob(Field);
Size := Blob.Size;