Value

This instance property returns the data, starting from the first byte in the BLOB, as a byte array.

Declaration

// C#
public Byte[] Value{get;}

Property Value

A byte array.

Exceptions

ObjectDisposedException - The object is already disposed.

InvalidOperationException - The OracleConnection is not open or has been closed during the lifetime of the object.

ArgumentOutOfRangeException - The Value is less than 0.

Remarks

The value of Position is not used or changed by using this property. 2 GB is the maximum byte array length that can be returned by this property.

For very large values, .NET may not be able to allocate enough contiguous memory to store all the data. Typically, you will see a System.OverflowException or System.OutOfMemoryException error then. To retrieve the large value, you can retrieve the data in chunks by calling GetChars() or GetBytes() method on the OracleDataReader. You can also call Read() method on the class.