Aleksey Dobrushin created CB-7885:
-------------------------------------
Summary: [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: Plugin Contacts
Affects Versions: 3.5.0
Reporter: Aleksey Dobrushin
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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]