title: Converting a BlobBuilder to string, in HTML5 Javascript
body: <pre><code>          function blobToString(blob) {
               var reader = new FileReader();
               var d = "";
               reader.onloadend = function() {
                   d.callback(reader.result); 
                   console.log(reader.result);
               };
               reader.readAsText(blob);  
               return d;
           };
  </code></pre>
  
  <p>The above code does not work, but I guess my intentions are clear, I want to convert some binary data(WebKitBlobBuilder) to a string. Also the "console.log(reader.result);" doesn't display anything.</p>