It seems that readAsBinaryString, a method of the JavaScript FileReader
object, is not supported in IE10. I've tried the following, as suggested in this HTML5 Rocks article:
String.fromCharCode.apply(null, new Uint16Array(buffer));
However, this results in an Out of stack space
error.
From the David Jones's answer, I wrote this method. The try/catch handles the readAsBinaryString exception in IE10/11 and call itself the "IE mode":
Try my code:
I found the answer here:
If you'd like something a little terser and ES2015-ier then this may be what you're after: