title: Images downloaded from s3, how to save them
body: <p>After downloading an image from s3, I get a bunch of bits inside the 'Body'. Previously, I was encoding such bits into base64 and displaying them directly in a <code>&lt;img&gt;</code> tag.</p>
  
  <p>But now, I want to save them into a "real" file (.jpg/png) in the filesystem (android/iOS) then give the path to a html (background) tag.</p>
  
  <blockquote class="spoiler">
    <p> (will it work?)</p>
  </blockquote>
  
  <p>Do I still need to convert the bunch of bits I got from S3 into base64 then save it or is there a more straightforward way ?</p>