//first arguement must be an regular array. The array can be of any javascript objects. Array can contain array to make it multi dimensional //second parameter must be a BlogPropertyBag object containing MIME property var myBlob = new Blob(["This is my blob content"], {type : "text/plain"}); var myReader = new FileReader(); //handler executed once reading(blob content referenced to a variable) from blob is finished. myReader.addEventListener("loadend", function(e){ document.getElementById("paragraph").innerHTML = e.srcElement.result;//prints a string }); //start the reading process. myReader.readAsText(myBlob);
<p id="paragraph"></p>