13.3.6.30 Write(byte[ ], int, int)
Overrides Stream
This instance method writes data from the provided byte array buffer into the OracleClob. 
                  
Declaration
// C# public override void Write(byte[ ] buffer, int offset, int count);
Parameters
- 
                        bufferThe byte array buffer that represents a Unicode string. 
- 
                        offsetThe offset (in bytes) from which the bufferis read.
- 
                        countThe amount of data (in bytes) from the buffer to be written into the OracleClob.
Exceptions
ObjectDisposedException - The object is already disposed.
                  
InvalidOperationException - The OracleConnection is not open or has been closed during the lifetime of the object.
                  
ArgumentOutOfRangeException - This exception is thrown if any of the following conditions exist:
                  
- 
                        The offsetor thecountis less than0.
- 
                        The offsetis greater than or equal to thebuffer.Length.
- 
                        The offsetand thecounttogether are greater than thebuffer.Length.
- 
                        The offset, thecount, or thePositionis not even.
Remarks
Both offset and count must be even numbers for CLOB and NCLOB because every two bytes represent a Unicode character.
                  
The LOB data is read starting from the position specified by the Position property. The Position property must be an even number.
                  
If necessary, proper data conversion is carried out from the client character set to the database character set.