DB2Blob Members

Represents the BLOB Db2® data type. Encapsulates the byte[] .NET data type. The following tables list the members that are exposed by the DB2Blob class.

Table 1. Public Fields
Public Field Description
public field Null Null value for DB2Blob.
Table 2. Public Constructors
Public Constructor Description
public method DB2®Blob(byte[] value) Initializes a new DB2Blob object with the specified byte array.
public method DB2Blob(DB2Connection conn) Initializes a new DB2Blob object that is associated with a specified connection.
Table 3. Public Properties
Public Property Description
public property CacheData Indicates if the data stored in the DB2Blob instance's current cursor position is being cached.
public property EstimatedSize Gets or sets the estimated final size of the DB2Blob object.
public property IsNull Gets a value that indicates if the value that is stored in the DB2Blob object is null.
public property IsOpen Gets a value that indicates whether the DB2Blob instance is open.
public property Size Gets the current size of the DB2Blob object in bytes.
public property Value Gets the value that is stored in the DB2Blob object.
Table 4. Public Methods
Public Method Description
public property GetBytes Reads a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset.
public property Read(byte[] buff) Read bytes from the BLOB object represented by the DB2Blob instance.
public property Read(byte[] buff, Int64 byteOffset, Int64 numBytesToRead, Int64 smartLobOffset, DB2SmartLOBWhence whence) Read bytes from the BLOB object represented by the DB2Blob instance.
public method ToString Returns a string that represents the DB2Blob structure.