Answers for "js string to blob"

0

how to convert string into blob in javascript

const str2blob = txt => new Blob([txt]);
Posted by: Guest on August-18-2021
-1

js string to blob

In order to extract data from a Blob, you need a FileReader.

var reader = new FileReader();
reader.onload = function() {
    alert(reader.result);
}
reader.readAsText(blob);
Posted by: Guest on March-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language