title: Is there a way to stream data directly from python request to minio bucket
body: <p>I am trying to make a GET request to a server to retrieve a tiff image. I then want to stream it directly to MinIO using the put_object method in the MinIO python SDK. </p>
  
  <p>I know I could do this by saving the image to a temp file, then uploading but I wanted to see if I could skip that step.</p>
  
  <p>I've tried inserting the byte response directly and using BytesIO to wrap it but I think I am missing something.</p>
  
  <pre class="lang-py prettyprint-override"><code>r = requests.get(url_to_download, stream=True)
  Minio_client.put_object("bucket_name", "stream_test.tiff", r.content, r.headers['Content-length'])
  </code></pre>
  
  <p>I get back the following error</p>
  
  <blockquote>
    <p>AttributeError: 'bytes' object has no attribute 'read'</p>
  </blockquote>
  
  <p>Any help is much appreciated!</p>