You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "dev null (JIRA)" <ji...@apache.org> on 2015/12/09 18:13:11 UTC
[jira] [Comment Edited] (CB-8618) Error in data != 0x002A when
selecting a picture with Phonegap Camera plugin - Windows Phone
[ https://issues.apache.org/jira/browse/CB-8618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15048713#comment-15048713 ]
dev null edited comment on CB-8618 at 12/9/15 5:12 PM:
-------------------------------------------------------
Same here
/////////////////////////FIXED/////////////////////
this is my code:
$scope.addImage = function() {
var options = {
quality: 50,
destinationType: Camera.DestinationType.FILE_URI,
sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
targetWidth: 200,
targetHeight: 200
};
$cordovaCamera.getPicture(options).then(function(imageUri) {
console.log('img', imageUri);
$scope.images.push(imageUri);
}, function(err) {
// error
});
}
HTML:
<button class="button button-energized" ng-click="addImage()">
Add image
</button>
<p ng-repeat="img in images">
<img ng-src="{{img}}" />
</p>
was (Author: dev_null):
Same here
> Error in data != 0x002A when selecting a picture with Phonegap Camera plugin - Windows Phone
> --------------------------------------------------------------------------------------------
>
> Key: CB-8618
> URL: https://issues.apache.org/jira/browse/CB-8618
> Project: Apache Cordova
> Issue Type: Bug
> Components: CordovaLib, Plugin Camera
> Affects Versions: 3.6.0
> Environment: wp8
> Reporter: eeadev
> Labels: WP8
>
> I am porting a cordova app to windows-phone-8. Using the cordova camera plugin I am using this function:
> function chooseFile() {
> navigator.camera.getPicture(onPhotoCaptureSuccess, onPhotoCaptureFail,
> {
> destinationType: Camera.DestinationType.FILE_URI,
> sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
> }
> );
> }
> it opens up my gallery but when I select my picture, it give me this message (in the output console):
> Error in data != 0x002A
> (which is a line code contained in the file ImageExifHelper.cs)
> and the image selected is not displayed.
> What is going on? How to make it work?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org