Gets the number of bytes of the message body when the message is in read-only mode as a long. The value returned can be used to allocate a byte array. The value returned is the entire length of the message body, regardless of where the pointer for reading the message is currently located. 
| Exception Type | Condition | 
|---|---|
| MessageException | if JMS fails to read the message due to some internal error. | 
| MessageNotReadableException | if the message is in write-only mode. | 
IBytesMessage Interface | WebLogic.Messaging Namespace