I am writing a JavaScript program that will get a file using a HTML <input type="file"> and a JavaScript FileReader. I split the result at every 1000000th character and push them via AJAX to a PHP-Script. My Problem is that at some point my browser crashes with the error "Out of memory". So how can I read that file more effiently? For example, is it possible to read a file character by character?
Thank you for your help.