incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon MacDonald (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1045) Obtaining image pointer from contact photo URI
Date Thu, 12 Jul 2012 14:40:33 GMT

    [ https://issues.apache.org/jira/browse/CB-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13412839#comment-13412839
] 

Simon MacDonald commented on CB-1045:
-------------------------------------

The URI returned in contact[0].photos[0].value is a content:// URI. It is perfectly okay to
set the value of img.src to this URI and Android will display it. If you pass the URI to window.resolveLocalFileSystemURI
it will fail as it only queries the media store DB while contact photos are stored elsewhere.


Even if we query the right DB it may be a problem as the thumbnail is stored as a base64 encoded
data and it may or may not have a pointer to the actual 'file' where the image data is stored.
                
> Obtaining image pointer from contact photo URI
> ----------------------------------------------
>
>                 Key: CB-1045
>                 URL: https://issues.apache.org/jira/browse/CB-1045
>             Project: Apache Cordova
>          Issue Type: Wish
>          Components: Android
>    Affects Versions: 1.9.0
>            Reporter: Paul Davis
>            Assignee: Joe Bowser
>
> This issue was discussed with Simon Mac Donald on the Google PhoneGap Groups.  I have
been attempting to obtain an image from a contacts URI but I believe this is not currently
handled in the PhoneGap Api.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message