title: Send file through Django Rest
body: <p>I need to download image object from vary object storage buckets, and send that to a user through Django Rest Framework.</p>
  
  <p>I have something like that:</p>
  
  <pre><code>if request.method == 'GET':
  
      # Get object using swiftclient
      conn = swiftclient.client.Connection(**credentials)
      container, file = 'container_name', 'object_name'
      _, data = conn.get_object(container, file)
  
      # Send object to the browser
      return Response(data, content_type="image/png")
  </code></pre>
  
  <p><code>data</code> variable contains bytes type.</p>
  
  <p>While testing I'm receiving error:
  <code>'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte</code></p>
  
  <p>What can be solution for this problem?</p>