cordova-issues mailing list archives

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

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

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:"http://developer.android.com/assets/images/home/ics-android.png"
Here is the code snippet
var fileTransfer = new FileTransfer();
						    fileTransfer.download(
						    		downloadurl,
									fileSystem.root.toURL()+"NEWLOC/",
									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: https://issues.apache.org/jira/browse/CB-6117
>             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
(v6.1.5#6160)

Mime
View raw message