Parameters
- dataIndex
- The specified column offset.
- buffer
- The specified buffer to read data to.
- bufferIndex
- The specified buffer offset.
- length
- The number of bytes to read.
Return Value
The actual number of bytes read.
If the buffer parameter is null, GetBytes returns the length of the field in bytes.
If the CacheData property is false, applications can only retrieve the complete set of data from a DB2Blob instance once (by any of the ways): via the GetBytes method, Value property, or the ToString method. Tying to retrieve the current instance data again by any of the means results in System.InvalidOperationException.