cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rita (JIRA)" <>
Subject [jira] [Commented] (CB-6117) cdvfile file url is not working with html5 image src
Date Thu, 27 Feb 2014 16:19:20 GMT


rita commented on CB-6117:

 manifest file I am using the version min:SDK-8 and max-SDK:19
I didn't restart the app.
URL for image is:""
Here is the code snippet
var fileTransfer = new FileTransfer();

									function(theFile) {
									console.log("download complete: " + theFile.toURI());

The image was downloaded at cdvfile://localhost/persistent/NEWLOC/ics-android.png
I used the same url for img tag <img src="cdvfile://localhost/persistent/SPB/ics-android.png">
Please help or share the snippet.I have one more question how this url cdvfile://localhost/persistent/SPB/ics-android.png
when we will reinstall the app.On the cordovaq 2.9.0 I can use the same API and there was
no issue
Please let me know if there is any minimum version requirement.

> cdvfile file url is not working with html5 image src
> ----------------------------------------------------
>                 Key: CB-6117
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File, Plugin File Transfer
>    Affects Versions: 3.4.0
>            Reporter: rita
> Hi 
> I had used the fileTranser APi to download the image from a given path.
> The image was downloaded at the path cdvfile://localhost/persistent/SPB/ics-android.png.
> But I am unable to access this image as url for <img> tag in html.Same code was
working till 2.9.0

This message was sent by Atlassian JIRA

View raw message