ToByteArray()
The method returns a byte[]
value of this OracleVector
instance.
Declaration
// C# public byte[] ToByteArray();
Return Value
A byte[]
Exceptions
OracleNullValueException - The current instance has a null value.
ObjectDisposedException - The object is already disposed.
InvalidCastException - The VectorType
is Sparse.
Remarks
If the vector's numeric format is not OracleDbType.Vector_Binary
, then this method implicitly converts the vector values to byte types.
This is the only valid To*Array()
method for Binary format vectors.