Wednesday 15 May 2013

android - file.entry phonegap doesn't work -



android - file.entry phonegap doesn't work -

i'm trying take file in android device using getpicture pluging, in success callback i've code:

function showalbumonsuccess(imageuri){ window.resolvelocalfilesystemuri(imageuri, function(entry){ alert(decodeuri(entry.name)); //this show file name entry.file(function(file){ var reader = new filereader(); reader.onloadend = function (evt) { alert("read success"); console.log(evt.target.result); }; reader.readasdataurl(file); },function(error){ alert("error "+error); }); },function(error){ alert("error : "+error); }); }

when run code en mi app show

file.entry errorcallback (error code: [object : object])

java.net.malformedurlexception: no installed handlers url

i need base64 code file selected.

thank you.

android file cordova base64

No comments:

Post a Comment