Kezia
0
Q:

blob to text javascript

var reader = new FileReader();
reader.onload = function() {
    alert(reader.result);
}
reader.readAsText(blob);
0
<RESPONSE PROMISE>
.then(r=>r.blob())
.then(r=>{
console.log(r.type)
return new Response(r)
})
.then(r=>
 r.text()
)
.then(console.log)
0

New to Communities?

Join the community