[
https://issues.apache.org/activemq/browse/CAMEL-299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41119#action_41119
]
Christian Schneider commented on CAMEL-299:
-------------------------------------------
What would be the configuration if my file contains binary data. In this case I
probably don“t want a TextMessage.
Is there any way to tell convertBodyTo to convert to byte[]?
> File body types should send the contents of the File as a BytesMessage by
> default
> ---------------------------------------------------------------------------------
>
> Key: CAMEL-299
> URL: https://issues.apache.org/activemq/browse/CAMEL-299
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-jms
> Reporter: James Strachan
> Fix For: 1.4.0
>
>
> We might wanna double check the handling of other kinds of InputStream /
> Reader / ByteBuffer too...
> If users want a TextMessage from the File they could always be explicit in
> the code...
> {code}
> from("file://foo/bar").convertBodyTo(String.class).to("activemq:SomeQueue");
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.