cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Clelland (JIRA)" <>
Subject [jira] [Commented] (CB-5398) Pick image from Library or Photo album on android 4.4
Date Tue, 18 Feb 2014 20:24:21 GMT


Ian Clelland commented on CB-5398:

Well, Data-URLs can be *very* large; I don't recall what the internal representation of strings
in WebKit is; but a base64 representation is at least 133% the size of the source; 266% if
it's represented in UCS-2. I wouldn't be surprised at all if a file which technically could
fit in RAM would cause an OutOfMemory exception if it were converted to a base64 string and
then passed across the bridge.

> Pick image from Library or Photo album on android 4.4
> -----------------------------------------------------
>                 Key: CB-5398
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Camera
>    Affects Versions: 2.9.0, 3.2.0
>         Environment: android 4.4
>            Reporter: julio cesar
>            Assignee: Mike Billau
>             Fix For: 3.5.0
> An android 4.4 try to pick a photo using pictureSource.PHOTOLIBRARY or pictureSource.SAVEDPHOTOALBUM
and return type destinationType.FILE_URI.
> Now android 4.4, when you select the above options, it opens an "open from" dialog that
 let you choose from new places as "Recent", "Drive", "Images" and "Downloads" (the names
might not be the same as I use the device in spanish and translated it).
> If you choose any of them, you get an error, AndroidProtocolHandler, unable to open content
URL: the url here with a content:// format.
> I've tested on phonegap 2.9 because this is the version I use, but I suppose it affects
all of them. (in fact I use 2.9.1)

This message was sent by Atlassian JIRA

View raw message