I have a Blob object I want to inspect by logging its value. All I can see are type
and size
properties. Is there a way to do this?
Basic example on using a FileReader to look at the content in a blob
var html= ['<a id="anchor">Hello World</a>'];
var myBlob = new Blob(html, { type: 'text/xml'});
var myReader = new FileReader();
myReader.onload = function(event){
console.log(JSON.stringify(myReader.result));
};
myReader.readAsText(myBlob);