Firebird ADO.NET Provider SDK Documentation - v1.7

FbDataReader.GetBytes Method 

Reads a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset.

[Visual Basic]
NotOverridable Public Function GetBytes( _
   ByVal i As Integer, _
   ByVal dataIndex As Long, _
   ByVal buffer As Byte(), _
   ByVal bufferIndex As Integer, _
   ByVal length As Integer _
) As Long _
    Implements IDataRecord.GetBytes
[C#]
public long GetBytes(
   int i,
   long dataIndex,
   byte[] buffer,
   int bufferIndex,
   int length
);

Parameters

i
The zero-based column ordinal.
dataIndex
The index within the field where the read operation is to begin.
buffer
The buffer into which to read the stream of bytes.
bufferIndex
The index where buffer is to begin the write operation.
length
The number of bytes to read.

Return Value

The actual number of bytes read.

Implements

IDataRecord.GetBytes

Remarks

If you pass a buffer that is a null reference, GetBytes returns the length of the field in bytes.

No conversions are performed, therefore the data retrieved must already be a byte array.

See Also

FbDataReader Class | FirebirdSql.Data.Firebird Namespace