How to pass binary data in email from email component of BPEL

If you are facing challenges sending binary data as part of your email and if it fails because of it. Throws similar kind of error

Jan 25, 2014 7:39:53 PM IST> <Error> <> <BEA-000000> <<MDBConsumer.processNotification> Error for message ID d36251825ad174ac:-22c981e7:143c8caea0c:-7b6c ERROR MESSAGE : Invalid char in text.;

Solution – 

1. Extract payload which contains binary data from the rest of email content.

2. Create Payload as base64encoded and send as an attachment.

3. It will work.

Similarily you can also try,

<element name=”userDetails” type=”xsd:base64Binary” xmime:expectedContentTypes=”application/octet-stream”/>

Hope it helps…..


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s