SyntaxFix
Write A Post
Hire A Developer
Questions
You can also use the FileReader class :
var reader = new FileReader(); reader.onload = function (e) { var data = this.result; } reader.readAsDataURL( file );