<!DO
?var req = new XMLHttpRequest();
req.open('GET', "/");
req.responseType = "arraybuffer";
req.send();
req.onreadystatechange = function () {
if (req.readyState === 4) {
var buffer = req.response;
var dataview = new DataView(buffer);
var ints = new Int32Array(buffer.byteLength / 4);
for (var i = 0; i < ints.length; i++) {
ints[i] = dataview.getInt32(i * 4);
}
console.log(ints[0]);
}
}
req.responseType = "arraybuffer";
и пускай сразу будет текст?