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

Richard B Knoll commented on CB-7501:
-------------------------------------

I believe that the error is that in your index.js

{code:javascript}
document.querySelector("#img").src = uri;
{code}

should be

{code:javascript}
document.querySelector("img").src = uri;
{code}

and that should fix your issue


> 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: Plugin Camera
>    Affects Versions: 3.5.0, 3.6.0
>         Environment: iOS. 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)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to