Comments (9)
The likely explanation is that the code was zipped with the standard zip library in Java, which doesn't create spec compliant Zip files, and in turn not valid EPUB files. But most people think that a .zip is a .zip and distribute corrupted EPUBs.
I'm not sure if this is the case with the EPUB file you are trying. I could investigate further if you could provide me with a reproducable test case or the file itself.
from js-unzip.
Maybe you could point me to a free epub so that i can check it.. The one i'm working with is the one bundled with epubjs called Emma_Jane-Austen.epub, can be checked out from
svn checkout http://epub-tools.googlecode.com/svn/trunk/epubtools/epubjs epubjs
the zipper in rePublish doesnt have any troubles with it.. Though your unzipper looks far more suffisticated.. I'm storing the epub files in google app engines app store if that could have some effect.. ? im serving with content-type="application/zip"
from js-unzip.
All the books on http://www.epubbooks.com/ comply to the standard, as far as I know.
I'll investigate the epub from the svn repo you pointed to.
from js-unzip.
Hmm.. I think this have something to do with app engines blobstore it must do something when the file is uploaded or when the file is served.. Would really like to solve this one.. Is it possible to make you try and load a epub with xmlhttprequest from blobstore for me, and maybe tell me whats wrong ?
from js-unzip.
it seems the problem just appears using the minified version of js-unzip: js-unzip.min.js
using the plain version js-unzip.js, no more entries are missed.
I can send you a zip file with the problem...
from js-unzip.
I've reproduced the error now. A fix is imminent.
from js-unzip.
I tried the latest version of js-unzip.js and it fails processing this file:
http://pgn4web.casaschi.net/zipped.zip
The file contains 6 text files (5 with .pgn extension, 1 with .txt extension), but the following code reports only two entries:
var unzipper = new JSUnzip(httpResponseData);
if (unzipper.isZipFile()) {
unzipper.readEntries();
console.log(unzipper.entries.length);
}
An older version of js-unzip.js used to read that file properly (provided that the & 0xff trick was used).
from js-unzip.
Any updates on the "imminent" fix for the missing entries?
from js-unzip.
Hey!
I just deprecated this project. I was looking into fixing bugs and updating it, but I found a much better alternative that didn't exist when I created this project. Check it out :)
https://gildas-lormeau.github.io/zip.js/
from js-unzip.
Related Issues (9)
- readEntries not working if my zip file contains one xml file and .moc file HOT 1
- How to unzip a cab file with js-unzip HOT 1
- entries.lengh is always 1 HOT 1
- regression for js-unzip.js of Nov 6th HOT 7
- Issue: js-unzip stops on PNG / Supported file formats HOT 4
- Stream with distance reference over 1024 doesn't decompress correctly HOT 1
- Not support Zip file HOT 9
- when user select file from dialog, isZipFile return false HOT 1
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 js-unzip.