The capture API conforms to the W3C capture spec and that dictates
returning a file path. The Camera functionality was written before
the Capture api was available and returns a URI. You can get the file
entry for the image URI with the following:
window.resolveLocalFileSystemURI(imageURI, gotFileEntry, fsFail);
function gotFileEntry(fileEntry) {
console.log("got image file entry: " + fileEntry.fullPath);
}
function fsFail(error) {
console.log("failed with error code: " + error.code);
}
You may even be able to just strip off the file:/localhost from your
imageURI in order to get the path but I didn't test to confirm.
-becky