So, I have a blob as a txt inside a zip. I can access the txt file but I cant open it. I've installed by npm the FileReader and tried something that I saw here on stackoverflow https://stackoverflow.com/questions/23024460/javascript-i-created-a-blob-from-a-string-how-do-i-get-the-string-back-out
, but I get nothing neither alerts or logs.
convertInText = (blob) => {
let reader = new FileReader();
reader.readAsText(blob, "ANSI");
reader.onloadend = function(e) {
console.log(reader.result);
};
};
Also imported FileReader and all but no result.