You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Brendan Farr-Gaynor (JIRA)" <ji...@apache.org> on 2014/09/09 18:23:28 UTC
[jira] [Created] (CB-7501) FILE_URI Can't view images captured in
iOS in HTML
Brendan Farr-Gaynor created CB-7501:
---------------------------------------
Summary: FILE_URI Can't view images captured in iOS in HTML
Key: CB-7501
URL: https://issues.apache.org/jira/browse/CB-7501
Project: Apache Cordova
Issue Type: Bug
Components: iOS, Plugin Camera
Affects Versions: 3.5.0, 3.6.0
Environment: Running app in PhoneGap app for iOS so that I can use the camera.
Reporter: Brendan Farr-Gaynor
Taking a picture with the camera and then trying to assign the FILE_URI to a image tag (<img>) as the src shows no image, as if the file is missing. A blank image appears.
What I have tried:
A fresh hello world app with this example: https://gist.githubusercontent.com/cfjedimaster/af298ed2bd0e3ce3ce54/raw/5e5b7804fb86ebfcf2e03f618a04ba384665134a/gistfile1.js
Alerting the path shows paths like: file://var/mobile/Applications/FF974729-CA18-4F48-A535-BB3731E1EF9D/tmp/cdv_photo_002.jpg
... but trying to assign that as the src on an image tag does not show the image.
If I try to assign an image like one in my assets/img folder or an external web address, that works, but I cannot assign one from the camera.
I have tried multiple versions and multiple clean apps. After 6 hours of attempting multiple approaches I feel like this must be a bug in cordova.
I can access the image for things like file transfers. Eg. I can upload it to a server, I just can't view it before I do that.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)