camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ychawla <>
Subject Re: SMTP: sending file binary as attachment corrupted
Date Wed, 07 Mar 2012 15:04:27 GMT
I remember I had some issues attaching files so I added a processor that
read them directly from the file system.  For example:

	public void addEmailAttachment(Exchange ex)
		String fileNameWritten =
		ex.getIn().addAttachment("", new DataHandler(new

The Camel Header: CamelFileNameProduced is the actual path to the file on
the file system.


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message