I'm working on an phonegap app for iphone, But, now i'm in trouble to find a way do download images from the server to the iphone gallery...
I have these small code that gets the file content:
var req = new XMLHttpRequest();
req.open('GET',"http://site.com/imagefile.jpg", false);
req.send();
But, I dont know how to force to save it. If not possible this way, I can also get the image file codeded into base64... I dont think if this will help something.
Could you please, give me some explanation?
I googled a lot, but I didnt find samples...