camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Straube <>
Subject Re: camel-ftp and file size check
Date Mon, 02 May 2011 09:39:04 GMT

I think you can use org.apache.camel.component.file.GenericFileFilter 
for this (I've not tested, if this works with FTP, but it should). See 
also the docu of the file component:

Best regrads - Claus

On 02.05.2011 11:20, tnk wrote:
> Hello,
>   regarding camel-ftp component (I am using ftps), is there any way to get
> file size before consuming the file? The problem is, that I have to load the
> whole file into memory and process it. Loading big files into memory would
> cause out of memory exception, so I want to limit file size up to N
> megabytes. If file is bigger, just log the error message.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

View raw message