Sending and Receiving Binary Data - MDN - Mozilla Developer Network
Receiving binary data in older browsers The load_binary_resource() function shown below loads binary data from the specified URL, returning it to the caller. function load_binary_resource(url) { var req = new XMLHttpRequest(); req.open('GET', url, false);...