Git Product home page Git Product logo

Comments (9)

augustl avatar augustl commented on July 24, 2024

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.

jakobholmelund avatar jakobholmelund commented on July 24, 2024

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.

augustl avatar augustl commented on July 24, 2024

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.

jakobholmelund avatar jakobholmelund commented on July 24, 2024

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.

sfornengo avatar sfornengo commented on July 24, 2024

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.

augustl avatar augustl commented on July 24, 2024

I've reproduced the error now. A fix is imminent.

from js-unzip.

casaschi avatar casaschi commented on July 24, 2024

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.

casaschi avatar casaschi commented on July 24, 2024

Any updates on the "imminent" fix for the missing entries?

from js-unzip.

augustl avatar augustl commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.