futurepress / epubjs-reader

Epub.js Reader
MIT License
449 stars 131 forks source link

Does anybody know how it would be possible to pass epub.js a buffer instead of a file url ? #72

Open florestano opened 5 months ago

WernerRaathAtPolymorph commented 4 months ago

I also need this so badly... All my attempts just have not been working

WernerRaathAtPolymorph commented 4 months ago

This worked for me:

var uint8Array = new Uint8Array(uint8ArrayVal);
book = ePub();
book.open(uint8Array);