: ERROR TypeError: Failed to execute "readAsDataURL" on" FileReader": parameter 1 is not of type "Blob".
this is written in ionic
\\xx.html
<input type="file" (change)="selectImage(this.files)" accept="image/jpeg,image/png,image/jpg">
\\xx.ts
selectImage(file){
var reader = new FileReader();
reader.onload = function(file){
// console.log(evt.currentTarget)
}
reader.readAsDataURL(file);
console.log(reader.readAsDataURL(file));
}