non-HTML5 browsers send raw file content with XMLHttpRequest

Is there a way to read the raw file content of the file and send the binary data to the server with an XMLHttpRequest ajax request? In HTML5 browsers I can do this:

reader = new FileReader();
reader.onload = function(e) {

There are some libraries like FileAPI or FileReader polyfill but none of them support readAsArrayBuffer() and if I use readAsBinaryString() the binary data will be screwed up while converting to String, and extra characters will be added to the content.

Any suggestions?



Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.