I have a simple route that downloads a ZIP file and puts it onto my local system. But when i try to read (via code) or open the zip (by double clicking on the file) i get an exception:
java.util.zip.ZipException: invalid entry size (expected 106152 but got 107190 bytes)
<from uri="ftp://boohool@somewhere.com/us/StockFeed?password=***//boohool@somewhere.com/us/StockFeed?password=***&initialDelay=5000&delay=60000&useFixedDelay=true&readLock=changed&include=..zip&sortBy=file:modified&delete=true&stepwise=false"/>
I know the file isnt corrupted, as i can download it with WinSCP.
Any ideas...
Fixed it: Just needed to add to the uri: binary=true