cordova-issues mailing list archives

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


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:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message