I am using a node server, from client i would encode and send data, which i would again decode on the server, but the problem is
I am encoding a wav file, it gives me an array of packets(ArrayBuffer), I try converting it into blob but then when I read the blob using FileReader, The result is a single ArrayBuffer, how do i make sure that the packets are not merged together...
var blob = new Blob(packets,{type:'packets'})
var arrayBufferNew = null;
var fileReader = new FileReader();
fileReader.onload = function() {
arrayBufferNew = this.result; // here i want the results as array of packets which I am originally setting.
};
fileReader.readAsArrayBuffer(blob);