Comments (2)
I have seen the same thing. I note that this only fails if I use DEFLATE
compression; STORE
works fine.
Mine can be reproduced using the following code:
var fs = require('fs');
var zip = new require('node-zip')();
zip.file('icon128.png', fs.readFileSync('icon128.png', 'binary'), { binary: true });
fs.writeFileSync('test.zip', zip.generate({ compression: 'DEFLATE', type: 'base64' }), 'base64');
and this image in the same directory.
Maybe scanning for a common sequence of bytes between the two files would be illuminating?
from node-zip.
Ok guys, after updating JSZip to the newest version (thanks to @dduponchel) seems like these issues have been solved (I reproduced shepheb and it works now).
from node-zip.
Related Issues (20)
- zip image from an url HOT 4
- JSZip 2.1.1 HOT 3
- Question - How is this different from JSZip? HOT 2
- Zip not recognized by Amazon's Lambda function HOT 6
- Issue with unzip HOT 2
- How to download binary? HOT 1
- Is it possible to create a zip from an existing file/folder structure? HOT 4
- Is file wildcard supported by command line? HOT 1
- How to solve the problem of Chinese garbled? HOT 1
- ZIP Contents of Lambda TMP Directory - Files are 0,1,2,3 Folders Deep
- request for adding feature HOT 1
- process out of memory HOT 3
- PDF file corrupted when zipped and downloaded
- Zipping a .tgz file corrupts the file
- Incorrectly zip image
- zip file obtained cant be opened HOT 4
- Fix a typo
- Unable to clear Cache from ZIP HOT 1
- Needs Typescript typings (please)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-zip.