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.
how to get data and length from raw and long raw fields
To solve this problem you should use the TBlob.Size property, like this:
Code: Select all
Blob := MyQuery1.GetBlob(Field);
Size := Blob.Size;