Hi,

Here is how to do it

    <route>
          <from uri="direct:in"/>
               <setBody><constant>C08005005472C0</constant></setBody>
               <convertBodyTo type="java.lang.byte[]" charset="utf-16"/>
               <to uri="mock:out"/>
    </route>

The endpoint mock:out should receive a byte[]...

Hope this helps.

Cheers,

Ashwin...


-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
--
View this message in context: 
http://camel.465427.n5.nabble.com/passing-byte-array-tp5529863p5529896.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to