I have a code:
var FReader = new FileReader();
FReader.onload = function(evnt){
console.log(evnt.target.result);
//How can I convert `evnt.target.result` back into a file and save it?
}
FReader.readAsBinaryString(file);
Please do not offer me to use other methods. This is a very simplified code. In the original code this data is passed to other people via websockets. And I need to transform it into files.
How can I convert evnt.target.result
back into a file and save it?