I get the following error
java.util.zip.ZipException: invalid distance too far back
I am downloading a compressed file from a FTP server using edtftp.jar. I am doing something like that:
GZipInputStream unzipped = new GZIPInputStream(new ByteArrayInputStream(downloadFileAsStream(ftpFile).toByteArray())));
When running my program on a Mac everything works fine. Testing the jar or even build the project in eclipse on a Windows machine will result in the error listed above.
Both machines are running Java 7 update 37. The only hint on StackOverflow was a corrupted archive file, but since the mac can extract the file properly it should not be this reason. Even 7zip on windows does not show any error while extracting the file.
Any idea what I can do to solve the issue on windows? Or why it only happens on a windows machine?