I know you can get an arraybuffer from an XMLHttpRequest in JavaScript.
var oReq = new XMLHttpRequest(); oReq.open("GET", "/myfile.png", true)