2

I am trying to get a full path to an image retrieved from Android image library. via the camera plugin.

window.resolveLocalFileSystemURI("content://media/external/images/media/83", function(fileEntry) {

or

window.resolveLocalFileSystemURL(imageURI, function(fileEntry) {
    fileEntry.file(function(fileObj) {
        newimageURI = fileObj.fullPath;
        alert(newimageURI);
    });
}); 

returns undefined.

There was updates the other day and it is no longer working. I have tried toURL() as well with no success.

4

1 回答 1

0

尝试删除文件插件并重新添加。为我工作。我认为这与这个错误有关:Cordova iOS Plugins failed after building, unless I remove platform and plugin JSON first

于 2014-03-10T10:54:41.420 回答