How to convert an arraybuffer to string in javascript
arrayBufferToString : function (arrayBuffer) { var binary_string = ''; bytes = new Uint8Array(arrayBuffer); for (var i = 0; i < bytes.byteLength; i++) { binary_string += String.fromCharCode(bytes[i]); } return binary_string; },
Aucun commentaire:
Enregistrer un commentaire