You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Julian Frumar (JIRA)" <ji...@apache.org> on 2015/08/05 01:16:04 UTC

[jira] [Created] (CB-9451) Fetching images for Google Photos by local URL fails when the image isn't downloaded

Julian Frumar created CB-9451:
---------------------------------

             Summary: Fetching images for Google Photos by local URL fails when the image isn't downloaded
                 Key: CB-9451
                 URL: https://issues.apache.org/jira/browse/CB-9451
             Project: Apache Cordova
          Issue Type: Improvement
          Components: Android, Plugin Camera
    Affects Versions: 3.8.0
            Reporter: Julian Frumar


Attempting to fetch an image that the user has picked from Google Photos seems doomed for failure if we attempt to access it via a local file URL. It seems the only reliable way to retrieve an image (which could hosted remotely by Google) is to use:

MediaStore.Images.Media.getBitmap()

That way the system will be responsible for retrieving the Bitmap. The bitmap can then be written to the filesystem if necessary and the URL of that file can be returned for passing back across the Cordova JS bridge.

Thoughts?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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