Yes you need to build your own conversion from byte[] to Map to store
the data as you need it.

there is no possible way for camel or java to convert a byte array
into a map structure.

See this EIP
http://camel.apache.org/message-translator.html

On Thu, May 4, 2017 at 9:44 AM, darwinanirudh <darwinanir...@gmail.com> wrote:
> I tried
>
> <camel:convertBodyTo type="java.util.Map" />
>
>
> but i am getting the following error :
>
>  Caused by: No type converter available to convert from type: byte[] to the
> required type: java.util.Map with value [B@1190966. Exchange[Message:
> {"callDate":"2017-12-08","callDuration":"400","callTime":"17:50:15","aNum":"1241972582","bNum":"004152234","callType":"20","direction":"O","eventTransDet":[]}].
> Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type
> converter available to convert from type: byte[] to the required type:
> java.util.Map with value [B@1190966]
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Unable-to-insert-body-data-into-table-using-sql-component-tp5798623p5798646.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to