[ 
https://issues.apache.org/jira/browse/CB-10756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15178725#comment-15178725
 ] 

Joe Bowser commented on CB-10756:
---------------------------------

This is a very good way to run out of memory, and we highly recommend not doing 
this since it will cause your application to be killed in the background.  
Please use files and send the file, it works a lot better than trying to cram 
anywhere from 2 to 10 MB of base64 encoded data through WebKit or Chromium. 

That being said, I was able to take one picture and have it work before running 
out of memory.  I'm going to remove Android from this, because as awful as this 
idea is, you can do this on a reasonably new Android device before running out 
of memory. 

> 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.
> $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
>             };



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to