Skip to content
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

readFile hangs forever when loading any file #17

Open
aloncarmel opened this issue Jun 2, 2015 · 2 comments
Open

readFile hangs forever when loading any file #17

aloncarmel opened this issue Jun 2, 2015 · 2 comments

Comments

@aloncarmel
Copy link

I dont know if im doing something wrong, but when i try to load a file

var EPub = require("epub");
    var epub = new EPub('EPUBFILE', '/images/IMG_ID/IMG_FILENAME', '/chapters/');

    epub.on("end", function(){
        // epub is now usable

                epub.getFile("coverstyle", function(error, data, mimeType){

                    console.log(error);
                    console.log(data);


                });

                res.send('done')

    });

Nothing works, it hangs forever.

@Allaoua9
Copy link

Hi, I have the same issue, it hangs on forever !

@Allaoua9
Copy link

Hi again,

You need to call epub.parse() after opening the file.

@julien-c you've done a great work, too bad the doc is not much clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants