AdoSBin.exe Stores and Retrieves Short Binary Data with ADO in Visual C++ (282932)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
This article was previously published under Q282932 SUMMARY 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.
Modification Type: | Minor | Last Reviewed: | 8/10/2004 |
---|
Keywords: | kbdownload kbdownload kbDatabase kbfile kbhowto kbSample KB282932 |
---|
|