XHR binary sending and receiving