camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tnk <jus...@gmail.com>
Subject camel-ftp and file size check
Date Mon, 02 May 2011 09:20:29 GMT
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: http://camel.465427.n5.nabble.com/camel-ftp-and-file-size-check-tp4364251p4364251.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message