epub.js
epub.js copied to clipboard
How can I correctly parse the results from a Blob file using Epubjs?
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.