javascript - phonegap save image from url to album -


For how to save the image URL for the album using phonegap Android

My The code is:

  & lt; A href = "#" onclick = "Svetofotoalbum ( 'Https://bildkfonegpkcom/imejej/aiconkpang', true);" & Gt; Click to save & lt; / A & gt;  

You will need to use the file transfer plugin

Function Album (Mary) {var fileTransfer = new FileTransfer (); Var uri = Encoder (Mary); Var filePath = "cdvfile: //localhost/persistent/myImageFolder/myImage.jpg"; fileTransfer.download (uri, FilePath, function (entry) {console.log ( "Download complete:" + entry.fullPath);}, function (error) {console.log ( "Download error source" + error.source); console.log ( "Download error target" + error.target); console.log ( "error code to upload" + error.code);}, false, {header: { "Authority": "basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA ==" }}); } & Lt; A href = "#" onclick = "Svetofotoalbum ( 'Https://bildkfonegpkcom/imejej/aiconkpang');" & Gt; Click to save lt and; / A & gt;

Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -