DB2Blob.Read(byte[] buff) method

Read bytes from the BLOB object that are represented by the DB2®Blob instance.

Namespace:
IBM.Data.DB2Types
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public Function Read( _
   ByVal buff() As Byte
) As Int64
[C#]
public Int64 Read(
   byte[] buff
);
[C++]
public: __int64 Read(
   unsigned char buff __gc[]
);
[JScript]
public function Read(
   buff : Byte[]
) : Int64;

Parameters

buff
The buffer into which to copy data.

Return value

The actual number of bytes that are read.

Remarks

The BLOB object is read into the buff byte array starting at element 0.

No data is written past the end of the buff byte array and BLOB data is truncated if the specified buff byte array is smaller than the BLOB data.