You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/08/17 20:54:50 UTC
[14/19] js commit: Update CameraProxy.js
Update CameraProxy.js
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/14e4d4ee
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/14e4d4ee
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/14e4d4ee
Branch: refs/heads/master
Commit: 14e4d4ee68e809de35e43a4b7fd3cb4a310a1b7b
Parents: c42269a
Author: wangmingfeng <mi...@gmail.com>
Authored: Thu Aug 16 12:48:51 2012 +0800
Committer: wangmingfeng <mi...@gmail.com>
Committed: Thu Aug 16 12:48:51 2012 +0800
----------------------------------------------------------------------
lib/win8metro/plugin/win8metro/CameraProxy.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/14e4d4ee/lib/win8metro/plugin/win8metro/CameraProxy.js
----------------------------------------------------------------------
diff --git a/lib/win8metro/plugin/win8metro/CameraProxy.js b/lib/win8metro/plugin/win8metro/CameraProxy.js
index e3d5b75..18f5a61 100755
--- a/lib/win8metro/plugin/win8metro/CameraProxy.js
+++ b/lib/win8metro/plugin/win8metro/CameraProxy.js
@@ -64,7 +64,7 @@ module.exports = {
// The resized file ready for upload
var _blob = canvas.msToBlob();
- var _stream = _blob.msRandomAccessStream();
+ var _stream = _blob.msDetachStream();
Windows.Storage.StorageFolder.getFolderFromPathAsync(packageId.path).done(function (storageFolder) {
storageFolder.createFileAsync(tempPhotoFileName, Windows.Storage.CreationCollisionOption.generateUniqueName).done(function (file) {
file.openAsync(Windows.Storage.FileAccessMode.readWrite).done(function (fileStream) {