This code is based on the one found on StackOverflow — it’s compatible with IE8+, and all modern browsers: // get the remote file binary content function getBinary(file, callback) { var convertResponseBodyToText = function(e) { return e }; var xhr = new XMLHttpRequest(); xhr.open(« GET », file, true); if (xhr.overrideMimeType) xhr.overrideMimeType(« text/plain; charset=x-user-defined ») else { // for IE8 […]