angularjs - How to save base64 images into device using Cordova application? -


how save base64 images device gallery using cordova application.i getting base64 text response.

you can find here http://ionicframework.com/docs/v2/native/base64-to%20gallery/

http://ourcodeworld.com/articles/read/80/how-to-convert-a-image-from-the-device-to-base64-with-javascript-in-cordova

https://cordovablogsblogs.wordpress.com/2015/05/29/phonegap-plugin-to-convert-base64-string-to-a-png-image-in-android/

reference code here

window.requestfilesystem(localfilesystem.persistent, 0, function (filesystem) {    var filetransfer = new filetransfer();   var uri = encodeuri("http://www.example.com/image");   var path = filesystem.root.tourl() + "appname/example.jpg";    filetransfer.download(     uri,     path,     function(entry) {       refreshmedia.refresh(path); // refresh image gallery     },     function(error) {       console.log(error.source);       console.log(error.target);       console.log(error.code);     },     false,     {       headers: {         "authorization": "dgvzdhvzzxjuyw1lonrlc3rwyxnzd29yza=="       }     }   );  }); 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -