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

Andrew Grieve commented on CB-8235:
-----------------------------------

Thanks for figuring this out. What application are you choosing the photo from 
(e.g. Gallery, G+ Photos, Dropbox, etc)

> 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