camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Crickenberger" <aaron.crickenber...@intalgent.com>
Subject Re: How to add attachement
Date Tue, 15 Jan 2008 15:06:29 GMT
On Jan 15, 2008, at 7:50 AM, borgel wrote:

> Seems like I have to specify binary mode for the ftp transfer. How  
> can I do
> that?

ftp://admin@localhost?password=xxx&binary=true

> borgel wrote:
>>
>> - When uploading files to a ftp server the attachements are stored in
>> folders with some cryptic names. How do i specify where to store the
>> attachments?

FtpProducer will use Camel's auto-generated message id's for the  
destination file if it can't find a filename in the  
FileComponent.HEADER_FILE_NAME header.  Try this:

exchange.getIn().setHeader(FileComponent.HEADER_FILE_NAME, "test.pdf");

- aaron

Mime
View raw message