Retrieve images from external Application Storage Directory In Ionic 3


#1

Hi , I need to retrive images from externalApplicationStorageDirectory file location ,
there i had try to use Ionic FTP plugin and download images from server location to externalApplicationStorageDirectory in mobile device and then , access that image file via ionic file plugin but problum is i cant find the actual path of the image folder in mobile device
is anyone have idea about it please let me know
this is my code

downloadFiles(filename) {
const imageLocation = this.file.externalApplicationStorageDirectory;
this.file
.createDir(this.file.dataDirectory, “www”, true)
.then(data => {
alert(“directoryCreated” + data.toURL());
this.ftp
.connect(“192.168.1.1:port”, “username”, “password”)
.then((res: any) => {
alert(“success " + res);
this.ftp.download(imageLocation+filename,”/Images/"+filename).subscribe((data) => {
//alert(JSON.stringify(data));
alert(imageLocation+filename);
this.storage.set(‘resourceUrl’,imageLocation);
if(data == 1){
alert(“Saved”);
}
});
})
.catch((error: any) => {
alert(this.file.dataDirectory+"/Images/abc.zip\n " + JSON.stringify(error));
});

  })
  .catch(err => {
    alert("error =" + err);
  });

}
my html

              <img class="item"  src="\FO1.jpg"/> 

FTP is working fine
But Where i can access that images

thanks