Comments (4)
I found that if I commented out the line 240 of the file lib/zipEntries.js
, everything would be fine. The original line was:
this.reader.zero = extraBytes;
But I am not sure if this modification causes other errors.
from jszip.
I got the similar error message, but I'm not sure if it's the same issue.
Error: Corrupted zip or bug: expected 1 records in central dir, got 0
This error can be reproduced by trying unzip the file created through the following command:
cat a-text-file | zip output.zip -
We also can put multiple records into the zip archive by using the following command:
cat a-text-file | zip output.zip - file1 file2
Unzip the file output.zip
through jszip
will get the the following error message:
Error: Corrupted zip or bug: expected 3 records in central dir, got 0
from jszip.
any news? same error
from jszip.
same issue.Corrupted zip or bug: expected 1 records in central dir, got 0
from jszip.
Related Issues (20)
- linebreak issues in windows text files HOT 1
- Byte alignment of resulting zip archive
- Missing folders when trying to extract files which are compressed using native compression software of Windows HOT 1
- Unable to open docx file in Node
- Same zip different zipContents when loadAsync
- JSZip v3.10+ breaks in some sandboxed browser environment because dependency setimmediate breaks HOT 1
- Can we generate LF instead of CRLF
- Reading Folder Doesn't Work
- Large zip file breaks with loadAsync
- Math.random() usage
- Is jszip unmaintained? HOT 9
- Zipping 1GB+ and splitting to chunks is slow - is there a way to speed it up?
- Can't use ReadableStream from generateNodeStream in the PutObjectCommand of s3
- escape and unescape are deprecated
- Error: End of data reached
- Failed to resolve module specifier.
- ZIP64 Support broken HOT 2
- Add asyncIterator support to NodejsStreamOutputAdapter
- Is there a recommended tool library for parsing rar format compression packages ?
- Can't unzip some zip files HOT 2
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 jszip.