1
I am making a Websocket connection and trying to send a Blob/Arraybuffer object resulting from a screen save, but what arrives on the server instead of bytes is
[object ArrayBuffer]
Example of a code :
var arrayBuffer;
var fileReader = new FileReader();
fileReader.onload = function(event) {
arrayBuffer = event.target.result;
socket.send("{\"data\":\"" + arrayBuffer + "\"}");
};
fileReader.readAsArrayBuffer(blob);
From now on I thank the collaborator.