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

diwas commented on CB-8235:
---------------------------

Thanks Andrew, this issue occurs when i choose a filename with spaces from 
dropbox or google drive. 
I further elaborate the issue in the link below. hopefully you are aware of the 
issue.
http://stackoverflow.com/questions/27744156/phonegap-camera-getpicture-fails-in-android-when-the-image-filename-contains-spa



> 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 the 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to