Value

This instance property returns the data, starting from the first byte in BFILE, 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.

Remarks

The length of data is bound by the maximum length of the byte array. The current value of the Position property is not used or changed.

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.