cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jcesarmobile (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CB-7885) [Contacts] pickContact - return image (photo) as base64 string
Date Sun, 02 Dec 2018 12:08:00 GMT

     [ https://issues.apache.org/jira/browse/CB-7885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

jcesarmobile closed CB-7885.
----------------------------
    Resolution: Won't Do

The plugin is deprecated, this won't be done

> [Contacts] pickContact - return image (photo) as base64 string
> --------------------------------------------------------------
>
>                 Key: CB-7885
>                 URL: https://issues.apache.org/jira/browse/CB-7885
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: cordova-plugin-contacts (DEPRECATED)
>    Affects Versions: 3.5.0
>            Reporter: Aleksey Dobrushin
>            Priority: Major
>
> It would be very useful, if pickContact function returns for photo (person image) not
a path to temporarily created on device file, but base64 string, which could be immediately
inserted in DOM image.src.
> By default - leave as it is, but if getImageData parameter true - do not create temp
file at all, give back base64 string. 
> I did PoC, it works perfectly, for iOS in CDVContact.extractPhotos additional line:
> {code}
> [newDict setObject:[data base64EncodedString] forKey:@"data"];
> {code} 
> makes the magic. But correctly would be implement either or: either save in file and
return file name, or do not save to file and return image data



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message