Webodf display odf from bytes
问题 Is it possible for webodf to read a odf / odt file from its bytes? instead of an url? Currently using: var odfelement = document.getElementById("odf"); var odfcanvas = new odf.OdfCanvas(odfelement); odfcanvas.load("url/to/file.odt"); and would like something like odfcanvas.loadFromBytes(bytes); 回答1: Yes, It is possible to read an odt file from byte Array and then load it in webodf editor. To do so ,you will have to use javascript blob objects to construct a file from a byte array(desired file