/ Published in: JavaScript
Ya que la funcion sendAsBinary de FF no funciona en Chrome se implemento esta para
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
XMLHttpRequest.prototype.sendAsBinary = function(datastr) { function byteValue(x) { return x.charCodeAt(0) & 0xff; } var ords = Array.prototype.map.call(datastr, byteValue); var ui8a = new Uint8Array(ords); this.send(ui8a.buffer); }