Open ClientConnect supports the following three binary types:
CS_BINARY is a binary type.
CS_VARBINARY is a variable-length binary type. It corresponds to the DB2 datatype VARBINARY, the DB-Library datatype DBVARYBIN, and the Gateway-Library datatype TDSVARYBIN, and includes a length specification (the initial two bytes, referred to in print as “LL”) along with the data.
CS_LONGBINARY is a long variable binary type. It does not include the two-byte “LL” length specification prefix. The default maximum length for this datatype is 32K.
CS_VARBINARY does not
correspond to the Adaptive Server datatype varbinary. Open ClientConnect converts
Adaptive Server varbinary data to CS_VARBINARY.