The AdoSBin.exe sample demonstrates how to retrieve and store short binary data with ActiveX Data Objects (ADO). When you use ADO, binary data is usually retrieved and stored by using the GetChunk and AppendChunk methods of the Field object. However, if the binary data is small, it is not necessary to retrieve the data in chunks. The data can be retrieved directly through a safe array.
This approach is usually used if the data in the data store is not really binary in nature but instead represents large integers or custom datatypes such as the SQL Server timestamp datatype. When you use custom datatypes, ADO retrieves them as a safe array of unsigned bytes, which can easily be converted to either large integer types or byte arrays. See above for more info...191 KB.
|