camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashwin Karpe <aka...@fusesource.com>
Subject Re: passing byte array
Date Fri, 02 Mar 2012 02:38:10 GMT
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.

Mime
View raw message