title: How to post an image in Python just like byte array in Java?
body: <p>On my Django backend, I deal with images like this:</p>
  
  <pre><code>for file in request.FILES.iteritems():
              image = request.FILES["image"]
  </code></pre>
  
  <p>It is easy to send a post request via java using a byte array. </p>
  
  <p>But how to do a post request using Python? </p>
  
  <p>As in, I've an image url. </p>
  
  <p>I've downloaded the iamge from an url using</p>
  
  <pre><code>r = requests.get('url')
  r.content #ImageConent
  </code></pre>
  
  <p>Now how do I post it such that it is delivered as a byte array?</p>