You can write bean to do the checksum. It will throw exception and the file
will not be downloaded. Off course you will have to take care of ' how many
times to retry logic ' !
Like ....
<route>
<from uri="ftp://[email protected]
?password=test&binary=true&delay=6000&move=.done"/>
<to uri="bean:checkSum"/> <!-- Check for file integrity -->
<to uri="file://target/testfiles"/>
</route>
On Wed, May 27, 2015 at 6:19 PM, Copernico <[email protected]> wrote:
> Hi!
>
> I'm using Camel FTP2 to download ZIP files from remote ftp server.
> Sometimes, downloaded files get corrupted. This occurs randomly. I know
> they
> are corrupted because when i try to unzip their content and i get an error
> during extraction. But when i download the same file with a ftp client like
> FileZilla or another, i can extract the content without trouble. There is a
> way to check (md5 checksum for example) if downloaded files are OK? and in
> case aren't ok: how do i retry the download?
>
> Thanks regards
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/FTP-Downloading-get-corrupted-files-tp5767530.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
- Ravi
*[ View My Youtube Channel
<https://www.youtube.com/playlist?list=PL5Y_TlNjh0D59A4K3yQQR7gNAslnxDmRB>
]*
Phone: +91 *98 509 760 91*