epub.js icon indicating copy to clipboard operation
epub.js copied to clipboard

How can I correctly parse the results from a Blob file using Epubjs?

Open danyun123 opened this issue 3 years ago • 0 comments

I used Epubjs to parse an ebook blob file, but I was unable to parse the correct result.

if (res instanceof Blob) { (res as Blob).arrayBuffer().then((resolve) => { const book = Epub(resolve); // The Book instance is available but not complete console.log(book); In the interim, I verified that the blob file was fine, and tried to convert the blob file to an arraybuffer file to no avail.

danyun123 avatar May 31 '23 16:05 danyun123