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; };
The above code does not work, but I think my intentions are clear, I want to convert some binary data (WebKitBlobBuilder) to a string. Also "console.log (reader.result)"; nothing is displayed.
javascript string html5 blob
user820955 Jul 31 '11 at 1:12 2011-07-31 01:12
source share