@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