title: How to upload a base64 encoded string to s3 and access the url in html file in python
body: <p>I have a base64 string. This string is base64 equivalent to image. Now this file should be uploaded to S3 and should be accessed using the s3 url directly in my browser or html file. 
  I have tried a couple of methods but failed to open the image in browser, it is just downloading into my box.</p>
  
  <p>Method 1:
  use the botoS3 method set_contents_from_string </p>
  
  <p>Method 2:
  convert the base64 to StringIO and use set_contents_from_file</p>
  
  <p>Method 3:
  Save the base64 to temp file and then use the method set_contents_from_file.</p>
  
  <p>All the above methods I used just downloading the file in my browser, they are not recognizing it as image</p>