diff --git a/src/windows/CameraProxy.js b/src/windows/CameraProxy.js index d03a180..bcd58de 100644 --- a/src/windows/CameraProxy.js +++ b/src/windows/CameraProxy.js @@ -267,7 +267,12 @@ function takePictureFromFileWindows(successCallback, errorCallback, args) { else { var storageFolder = getAppData().localFolder; file.copyAsync(storageFolder, file.name, Windows.Storage.NameCollisionOption.replaceExisting).done(function (storageFile) { - successCallback(URL.createObjectURL(storageFile)); + if(destinationType == Camera.DestinationType.NATIVE_URI) { + successCallback("ms-appdata:///local/" + storageFile.name); + } + else { + successCallback(URL.createObjectURL(storageFile)); + } }, function () { errorCallback("Can't access localStorage folder."); });