WebLogic Messaging API Class Library

IStreamMessage.WriteBytes Method (Byte[], Int32, Int32)

Writes a portion of a byte array as a byte array field to the stream message.

The a portion of the byte array value is written to the message as a byte array field. Consecutively written byte array fields are treated as two distinct fields when the fields are read.

void WriteBytes(
   Byte[] value,
   Int32 offset,
   Int32 length
);

Parameters

Byte[]
the byte array value to be written
Int32
the initial offset within the byte array
Int32
the number of bytes to use

Exceptions

Exception TypeCondition
MessageExceptionif JMS fails to write the message due to some internal error.
MessageNotWriteableExceptionif the message is in read-only mode.

See Also

IStreamMessage Interface | WebLogic.Messaging Namespace | IStreamMessage. Overload List