cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brendan Farr-Gaynor (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-7501) FILE_URI Can't view images captured in iOS in HTML
Date Tue, 09 Sep 2014 16:23:28 GMT
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)

Mime
View raw message