title: How to encode a file in FileField using s3 to base64 in django?
body: <p>I have a project that need to convert the file stored in a model's FileField to Base64 format, but I'm not sure how to do it.</p>
  
  <p>I tried using <code>open(model_instance.file_field.file)</code>, it doesn't work</p>
  
  <p>I tried using <code>base64.b64encode(model_instance.file_field.file)</code>, also doesn't work</p>