You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "diwas (JIRA)" <ji...@apache.org> on 2015/01/02 15:13:13 UTC
[jira] [Updated] (CB-8235) phonegap plugin getpicture method fails
on android when filename has spaces
[ https://issues.apache.org/jira/browse/CB-8235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
diwas updated CB-8235:
----------------------
Description:
I'm using the latest version of the phonegap camera plugin (i.e. 0.3.4) and 3.5.0 of phonegap Build, 4.1.2-0.22.10 cli version, testing on Android 4.x, below is my code for getting images:
navigator.camera.getPicture(uploadPhoto,
function(message) { console.log('get picture failed');alert(message) },
{ quality: 50, targetWidth: 400, targetHeight: 400,
destinationType: navigator.camera.DestinationType.FILE_URI,
sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY }
);
when i choose an image where its filename without spaces (e.g. test.jpg), the uploadPhoto method is called successfully, but when i choose an image where its filename with space (test 2.jpg), error function is called back with the alert message "Unable to create bitmap!".
was:
I'm using the latest version of the phonegap camera plugin (i.e. 0.3.4) and 3.5.0 of phonegap Build, testing on Android, below is my code for getting images:
navigator.camera.getPicture(uploadPhoto,
function(message) { console.log('get picture failed');alert(message) },
{ quality: 50, targetWidth: 400, targetHeight: 400,
destinationType: navigator.camera.DestinationType.FILE_URI,
sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY }
);
when i choose an image where its filename without spaces (e.g. test.jpg), the uploadPhoto method is called successfully, but when i choose an image where its filename with space (test 2.jpg), error function is called back with the alert message "Unable to create bitmap!".
> phonegap plugin getpicture method fails on android when filename has spaces
> ---------------------------------------------------------------------------
>
> Key: CB-8235
> URL: https://issues.apache.org/jira/browse/CB-8235
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 3.5.0
> Environment: android
> Reporter: diwas
> Priority: Critical
>
> I'm using the latest version of the phonegap camera plugin (i.e. 0.3.4) and 3.5.0 of phonegap Build, 4.1.2-0.22.10 cli version, testing on Android 4.x, below is my code for getting images:
> navigator.camera.getPicture(uploadPhoto,
> function(message) { console.log('get picture failed');alert(message) },
> { quality: 50, targetWidth: 400, targetHeight: 400,
> destinationType: navigator.camera.DestinationType.FILE_URI,
> sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY }
> );
> when i choose an image where its filename without spaces (e.g. test.jpg), the uploadPhoto method is called successfully, but when i choose an image where its filename with space (test 2.jpg), error function is called back with the alert message "Unable to create bitmap!".
--
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