[
https://issues.apache.org/activemq/browse/CAMEL-299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41120#action_41120
]
James Strachan commented on CAMEL-299:
--------------------------------------
A File would have to be assumed to be binary data really (I guess we could get
clever and try and find the MIME type of the file possibly?) but by default I'd
say File's should be trreated as binary; if you want it to be treated as text,
then add the convertBodyTo(String.class) to the DSL
> 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.