How to get the file after using photo library

Hi All,

I am using photo library to retrieve photo and get this.


My question is how to get the photo file object from it. I try to get file path and file name from id , file path is :/storage/emulated/0/, file name is : IMG_20180502_224855.jpg, and then try to read it using file plugin like

file.readAsDataURL(fileInfo.fileDir,fileInfo.fileName).then(…), but got encoding error,

I also tried to using file.resolveLocalFilesystemUrl(image.photoURL), but got the same error.

Please help how to get the file object, thanks.

anyone help??? thanks.

You can use the Camera plugin to get photos from your library

See my post in this topic: Camera plugin is working or not
Should help you in the right direction