Converting the file to a string:
const reader = new FileReader()
reader.readAsText(file, 'UTF-8')
reader.onload = (event) => {
this.textFile = event.target.result
};
Upon uploading a Zip, Text, or Image file, my string appears as:
data:text/plain;base64,VTJGc.....
Is there a way to reverse the conversion from text back to a downloadable file?