title: Convert downloaded image into file object in single line
body: <p>This is quote from an DeathByCaptcha API documentation I am using.</p>
  
  <pre><code>dict deathbycaptcha.Client.decode(file imageFile, int timeout)
  dict deathbycaptcha.Client.decode(str imageFileName, int timeout)
  </code></pre>
  
  <p>It can either accept path to image file or the file object</p>
  
  <p>I have this line of code.</p>
  
  <pre><code>client.decode(urllib.urlopen('https://example/image.jpg').read(), 30)
  </code></pre>
  
  <p>But its giving me error because <code>.read()</code> does returns <code>file-like</code> object.</p>
  
  <p>My preference is to do it in one line.</p>
  
  <p>Is there any way I can easily cast that stream read by <code>read()</code> to file-like object?</p>
  
  <p>If not possible in one line like we do in PHP <code>(string) 100</code> then I will accept a multi-line </p>