function blobToString(blob) { var reader = new FileReader(); var d = \"\"; reader.onloadend = function() {
Check out http://blog.ericzhang.com/state-of-binary-in-the-browser/ and his binary.js project.