我正在使用app,我必须从图库和相机中选择图片,所以我使用 cordova camera plugin ,我正在使用 destinationType: destinationType.FILE_URI 其工作正常,现在我想将URI转换为文件对象,所以我使用 File plugin V1.2.0 ,我试图转换使用 window.resolveLocalFileSystemURL(fileUrl, onResolveSuccess, onFail); 文件调用on fail函数,但我有FileURl的图像路径,我在刺激器中从我的本地桌面选择图片,我正在获取像 file:///C:/Users/some/Desktop/some/some.jpg 这样的路径,即使我在移动设备中尝试过它也不起作用,我试图找到解决方案与过去4天需要帮助

//select picture from gallery

function selectGallery() {
var pictureSource = navigator.camera.PictureSourceType;
var destinationType = navigator.camera.DestinationType;
    navigator.camera.getPicture(onSuccessGallery,onFailGallery, {
    quality: 50,
    sourceType: pictureSource.PHOTOLIBRARY,
    destinationType: destinationType.FILE_URI

});
}

function onSuccessGallery(fileURL) {
// i am getting fileURL: file:///C:/Users/some/Desktop/some/some.jpg
var Image
Image = document.getElementById('Image');
Image.src = fileURL;
window.resolveLocalFileSystemURL(fileURL, onResolveSuccess, onFail);
}

function onResolveSuccess (fileEntry)
{
   alert("fileEntry");
}

 function onFail(e)
{
   alert("Error");
}