gzip - Java ZipException: invalid distance too far back only on Windows -
i next error
java.util.zip.zipexception: invalid distance far
i downloading compressed file ftp server using edtftp.jar. doing that:
gzipinputstream unzipped = new gzipinputstream(new bytearrayinputstream(downloadfileasstream(ftpfile).tobytearray())));
when running programme on mac works fine. testing jar or build project in eclipse on windows machine result in error listed above.
both machines running java 7 update 37. hint on stackoverflow corrupted archive file, since mac can extract file should not reason. 7zip on windows not show error while extracting file.
any thought can solve issue on windows? or why happens on windows machine?
java gzip
No comments:
Post a Comment