WebLogic Messaging API Class Library |

# ISession.CreateBytesMessage Method

Creates an `IBytesMessage` object. An `IBytesMessage` object is used to send a message containing a stream of uninterpreted bytes.

IBytesMessage CreateBytesMessage();

#### Return Value

An `IBytesMessage` object.

#### Exceptions

Exception Type | Condition
--- | ---
MessageException | if JMS fails to create this message due to some internal error.

#### See Also

ISession Interface | WebLogic.Messaging Namespace