Hi,
I am attempting to add an attachment via DataHandler to the Synapse Message
Context in a class mediator via the following code:
DataHandler dataHandler = new DataHandler(new
InputStreamDataSource(photoStream));
((Axis2MessageContext)
messageContext).getAxis2MessageContext().addAttachment("Photo",
dataHandler);
However, it does not seem to be getting attached, i.e. it is not showing up
on the wirelog after the response is sent from the class mediator.
Is there a different approach to accomplish this?
Thanks.
--
View this message in context:
http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-Adding-attachment-to-Synapse-MessageContext-tp93759.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev