cordova插件相机中FILE_URI和NATIVE_URI之间的区别

cordova插件相机中的FILE_URI和NATIVE_URI有什么不同?

有三种选择,据我所知,每个平台都有不同的选择:

Camera.DestinationType.FILE_URI 'file://' ios 'content://' android Camera.DestinationType.NATIVE_URI 'assets-library://' ios 'content://' android Camera.DestinationType.DATA_URL 'data:image/jpg;base64,' 

如果你想将它们转换为其他url,你可以使用文件插件: https : //github.com/apache/cordova-plugin-file

 navigator.camera.getPicture(function (path) { window.alert('getPicture.success: ' + JSON.stringify(path)); window.resolveLocalFileSystemURI(path, function (fileEntry) { window.alert("success: " + JSON.stringify(fileEntry)); }, function (e) { window.alert("error: " + JSON.stringify(e)); }); }, function (e) { window.alert('getPicture.error: ' + JSON.stringify(e)); }, $scope.options); 

以下是选项的文档: https : //github.com/apache/cordova-plugin-camera/blob/master/www/CameraConstants.js

以及此函数源代码的链接: https : //github.com/apache/cordova-plugin-file/blob/master/www/resolveLocalFileSystemURI.js