Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70792

Error: {"code":5,"message":"ENCODING_ERR"} when displaying images from sd or storage on android?

$
0
0

@felix007 wrote:

getSanitizedImage(){
this.file.readAsDataURL(this.file.externalDataDirectory , this.random_image)
.then((data)=>{
console.log(data);
let sanitized = this.sanitizer.bypassSecurityTrustUrl(data);
console.log(sanitized);
this.cop=sanitized;
})
.catch((err)=>{
console.log("error: " + JSON.stringify(err));
});
}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70792

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>