typescript - Unable to set img src from cordova file in Ionic -
i'm using cordova-plugin-file-transfer , cordova-plugin-file download user avatars , display them locally in app. i'm fetching images , storing them in file.datadirectory according to: https://ionicframework.com/docs/native/file-transfer/ . when check file in directory says exists...however when try set absolute path of file <img> tag see nothing. i'm pulling in path dynamically when hardcode it...nothing. code saving, loading avatars: saveavatar() { var downloadurl = this.user.avatar + "?type=small&sz=75"; console.log("downloading avatar from: " + downloadurl); console.log("storing file to: " + this.file.datadirectory + this.user.id + '/avatar.jpg'); this.filetransfer.download(downloadurl, this.file.datadirectory + this.user.id + '/avatar.jpg') .then((entry) => { console.log('~~~~~ download complete: ' + entry.tourl()); }, (error) => { console.log(...