dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleArrayDataReader Class / GetBytes Method
Zero-based ordinal of the OBJECT TYPE property. Ignored when array consists of elements with type other than OBJECT TYPE.
The index within the field where the read operation is to begin.
The buffer into which to read the stream of bytes.
The index within the buffer where the write operation is to begin.
The maximum length to copy into the buffer.

In This Topic
    GetBytes Method (OracleArrayDataReader)
    In This Topic
    If the array consists of OBJECT TYPE elements, reads a stream of bytes from the specified property of the current array element, otherwise, reads a stream of bytes from the current array element.
    Syntax
    'Declaration
     
    Public Function GetBytes( _
       ByVal i As Integer, _
       ByVal fieldOffset As Long, _
       ByVal buffer() As Byte, _
       ByVal bufferoffset As Integer, _
       ByVal length As Integer _
    ) As Long
    public long GetBytes( 
       int i,
       long fieldOffset,
       byte[] buffer,
       int bufferoffset,
       int length
    )

    Parameters

    i
    Zero-based ordinal of the OBJECT TYPE property. Ignored when array consists of elements with type other than OBJECT TYPE.
    fieldOffset
    The index within the field where the read operation is to begin.
    buffer
    The buffer into which to read the stream of bytes.
    bufferoffset
    The index within the buffer where the write operation is to begin.
    length
    The maximum length to copy into the buffer.

    Return Value

    The actual number of bytes read.
    Remarks
    If the array consists of OBJECT TYPE elements and i is equal or more than FieldCount, or it is less than zero, System.ArgumentOutOfRangeException is thrown.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also