I use the PhoneGap camera API to take a picture and save it using destinationType.FILE_URI . This part works. Then I can take the provided path and set it as src of the HTML image, and the image will appear.
Later in the code, I want to capture an image, convert it to base64encoded data and transfer it to the server. This is problem.
I get {"code" : 5} (which, according to this , means its invalid URI) in my failover callback when using:
fileSystem.root.getFile("content://media/external/images/media/4292", null, gotFileEntry, fail);
I do not understand why I can install img.src , but phoneGap cannot use the same URI to find the file?
source share