[
https://issues.apache.org/jira/browse/CB-9451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Frumar updated CB-9451:
------------------------------
Description:
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 be 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?
was:
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?
> 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 be 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: [email protected]
For additional commands, e-mail: [email protected]