I want to convert Base64String extracted from file(ex: "AAAAA....~") to a javascript file object.
The javascript file object what I mean is like this code:
HTML:
<input type="file" id="selectFile" >
JS:
$('#selectFile').on('change', function(e) {
var file = e.target.files[0];
console.log(file)
}
'file' variable is a javascript file object. So I want to convert a base64 string to the javascript file object like that.
I just want to get file object by decoding base64 string (encoded by other app from a file) without html file input form.
Thank you.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…