I have a binary file on a server and I want to read it.
I did something like that to get the file :
var request = new XMLHttpRequest();
request.open("GET", file);
request.onreadystatechange = function() {
if (request.readyState == 4) {
doSomething(request.responseText);
}
}
request.send();
but after that I'm not really sure what to do... What is the proper way to do this ?
is there a way to use fileReader.readAsArrayBuffer() to do what I want to do ?