[
https://issues.apache.org/jira/browse/CB-10270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15138795#comment-15138795
]
ASF GitHub Bot commented on CB-10270:
-------------------------------------
Github user olexme commented on the pull request:
https://github.com/apache/cordova-plugin-camera/pull/160#issuecomment-181818806
I had the same issue (empty string from getPicture() when trying to get the
gallery picture) and I've just tried to use this PR by
cordova plugin add
https://github.com/MSOpenTech/cordova-plugin-camera#ee06d3efb233d5404d0aeda2abe08e6fd765c7fe
Unfortunatelly it didn’t solve the issue - instead the empty string I get
“file://“.
My options:
options = {
quality: 80,
encodingType: 0,
destinationType: 1,
sourceType: 0,
allowEdit: false,
saveToPhotoAlbum: false,
correctOrientation: true,
cameraDirection: 1
};
Android 5.0.0 on Galaxy S5
> camera.getPicture() returns an empty string
> -------------------------------------------
>
> Key: CB-10270
> URL: https://issues.apache.org/jira/browse/CB-10270
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Camera
> Affects Versions: 2.1.0
> Environment: Android 4.4.2 (api 19)
> Reporter: Alexander Sorokin
> Assignee: Richard B Knoll
> Priority: Critical
> Labels: android, reproduced, triaged
> Attachments: mobilespec-camera.7z
>
>
> Code sample to reproduce:
> {code}
> navigator.camera.getPicture(onSuccess, onFail, {
> destinationType: Camera.DestinationType.FILE_URI,
> sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
> correctOrientation: true
> });
> {code}
> {{onSuccess}} is called with an empty string as an argument.
> if {{correctOrientation}} is {{false}}, everything works as expected.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]