-
Notifications
You must be signed in to change notification settings - Fork 374
"invalid compressed data to inflate" on unzipping after addLocalFolder #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm experiencing the exact same thing. Some files work when adding to a zip and then extracting. There are some files, though that let me add them to the zip and write the zip, but when extracting the contents the files are empty. Here is a specific file that is not working for me: http://awes0.me/hjkl-center.png var fs = require( 'fs' );
var Zip = require( 'adm-zip' );
var zip = new Zip();
zip.addLocalFile( '/path/to/file.png' );
zip.extractAllTo( '/path/to/folder' ); // file.png is empty
// OR
var zip = new Zip();
zip.addFile( 'file.png', fs.readFileSync( '/path/to/file.png' ) );
zip.extractAllTo( '/path/to/folder' ); // file.png is empty It's the same whether I extract programmatically, or write the zip and call Any ideas? |
Hi,
|
I switched to another module: https://github.com/ctalkington/node-archiver and it's working now. |
check if this fix that: |
Same problem for me, but that fix is not working unfortunately. Now returns |
To do so, I replaced |
@rainbow-alex Many, many thanks for the recommendation to use the constant STORED, instead of DEFLATED. It worked in my case. |
Does anyone know if this will be accepted into the build as an official fix? |
2. invalid compressed data to inflate on unzipping after addLocalFolder #102 url cthackers/adm-zip#102
Getting the same error today - any new workarounds? I'd rather not go into a file and change the whole library... |
This is happening to us. Show stopper. |
I create a new zip by adding a local directory as follows:
After a new zip file is written to a disk, I try to extract and it gives me the following error:
The text was updated successfully, but these errors were encountered: