[
https://issues.apache.org/jira/browse/CAMEL-8069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14220783#comment-14220783
]
Christoph Läubrich commented on CAMEL-8069:
-------------------------------------------
well it might be rarely used because its atm alittle bit hard to use. IMO it
would also be okay to have a processor that could be used as a bean instead of
a "special" tag or something. Beside thus, doing this via script languages is
not very compfortable.
Having such a thing prebuild into camel would make things like, reading from a
file or report generator and send this to one or more mail accounts attaching
it to mail (e.g. billing to customer) much more easy and understandable instead
of forching one to write custom code.
And such a use case is I think more likeley than "rare"...
> Provide xml component to add attachments
> ----------------------------------------
>
> Key: CAMEL-8069
> URL: https://issues.apache.org/jira/browse/CAMEL-8069
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Christoph Läubrich
>
> Currently you can only add attachments from java or scripting code.
> It would be nice to have something like addAttachment (like addHeader) for
> the XML, so you can define (and add) attachments by:
> - supply name + file by header values (->FileDataSource)
> - supply URL by header values (->URLDataSource)
> - use the body of the input message (Inputstream, byte[])
> This would allow for easier and uniform handling of attachments e.g. in the
> mail component.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)