Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 414061868D for ; Mon, 7 Mar 2016 19:34:43 +0000 (UTC) Received: (qmail 40408 invoked by uid 500); 7 Mar 2016 19:34:41 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 40170 invoked by uid 500); 7 Mar 2016 19:34:41 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 39573 invoked by uid 99); 7 Mar 2016 19:34:41 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Mar 2016 19:34:41 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C7F8F2C1F5C for ; Mon, 7 Mar 2016 19:34:40 +0000 (UTC) Date: Mon, 7 Mar 2016 19:34:40 +0000 (UTC) From: "Richard B Knoll (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-10756) Camera feature doesn't work if quality greater than 50 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-10756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard B Knoll updated CB-10756: --------------------------------- Description: Http Post request fails if Camera image passed as a Data URI which is captured by cordova image capture plugin. {code} $http({url:ServerURL+'/pgas-bbmp-portlet/requestprocess.do' , method: "POST", params: { userId:$rootScope.user!=undefined?$rootScope.user.userid:0, imageData:$rootScope.limgData } }) .then(function(response) { console.log(response.data); console.log(response.status); } ,function(response) { console.log(response.data); console.log(response.status); }); where $rootScope.limgData is imageData got from Success fn of navigator.camera.getPicture() Camera Options: var options = { quality:100, destinationType: Camera.DestinationType.DATA_URL, sourceType: Camera.PictureSourceType.CAMERA, allowEdit: false, encodingType: Camera.EncodingType.JPEG, targetWidth: 200, targetHeight: 200, popoverOptions: CameraPopoverOptions, saveToPhotoAlbum: false, correctOrientation:true }; {code} was: Http Post request fails if Camera image passed as a Data URI which is captured by cordova image capture plugin. $http({url:ServerURL+'/pgas-bbmp-portlet/requestprocess.do' , method: "POST", params: { userId:$rootScope.user!=undefined?$rootScope.user.userid:0, imageData:$rootScope.limgData } }) .then(function(response) { console.log(response.data); console.log(response.status); } ,function(response) { console.log(response.data); console.log(response.status); }); where $rootScope.limgData is imageData got from Success fn of navigator.camera.getPicture() Camera Options: var options = { quality:100, destinationType: Camera.DestinationType.DATA_URL, sourceType: Camera.PictureSourceType.CAMERA, allowEdit: false, encodingType: Camera.EncodingType.JPEG, targetWidth: 200, targetHeight: 200, popoverOptions: CameraPopoverOptions, saveToPhotoAlbum: false, correctOrientation:true }; > Camera feature doesn't work if quality greater than 50 > ------------------------------------------------------ > > Key: CB-10756 > URL: https://issues.apache.org/jira/browse/CB-10756 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera > Environment: Android,IOS > Reporter: Viththal Joshi > Labels: iOS > > Http Post request fails if Camera image passed as a Data URI which is captured by cordova image capture plugin. > {code} > $http({url:ServerURL+'/pgas-bbmp-portlet/requestprocess.do' , > method: "POST", > params: { > userId:$rootScope.user!=undefined?$rootScope.user.userid:0, > imageData:$rootScope.limgData > } > }) > .then(function(response) { > console.log(response.data); > console.log(response.status); > } > ,function(response) { > console.log(response.data); > console.log(response.status); > }); > where $rootScope.limgData is imageData got from Success fn of navigator.camera.getPicture() > Camera Options: > var options = { > quality:100, > destinationType: Camera.DestinationType.DATA_URL, > sourceType: Camera.PictureSourceType.CAMERA, > allowEdit: false, > encodingType: Camera.EncodingType.JPEG, > targetWidth: 200, > targetHeight: 200, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false, > correctOrientation:true > }; > {code} -- 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