title: Download images and save locally on iPhone Phonegap app
body: <p>I've already managed to save a web page (x/html) successfully, but I'd also like to save the images and mp4 videos that are contained in it, for further visualization in offline mode.</p>
  
  <p>I've got access to the iOS filesystem, so I save the html by obtaining the code through an AJAX request, and later saving it to a file.</p>
  
  <p>I don't really know how to do the same with <strong>video</strong> and <strong>images</strong>. I have a server to which I can send queries from my app, so it shows exclusively the content I need to download, with the optimal headers in case its necessary. I just don't know how to "download" it from the client side (<strong>Javascript</strong>).</p>
  
  <p>Thanks in advance for any help.</p>