title: Encode image to Base64 from Amazon S3
body: <p>I have an iframe which contains an image. The image source is linked to an image in an <code>S3</code> bucket. I need to encode this image in <a href="http://en.wikipedia.org/wiki/Base64" rel="nofollow">Base64</a> and save the body of the iframe in the database.</p>
  
  <p>How can I do this?</p>