Cannot read a file using cordova file plugin in an Ionic 2 project
I'm trying to use the Cordova file plugin to read an image saved in a mobile device so I can then get the base64 encoding of it, which I need to store remotely. The problem is that the resolveLocalFilesystemUrl() method, which is supposed to provide a File Entry object, instead seems to be returning an Entry object, which means I can't call file on it. Here is the code that should be getting the File Entry object so I can use the file method to read the file itself. MediaCapture.captureImage().then((images)=>{ self.image = images[0].localURL; File.resolveLocalFilesystemUrl(self.image).then(