title: Python3 Flask upload file in server memory
body: <p>I'm using Flask in Python3 as a webserver, and am using the upload function of Flask. Uploading a file to the server results in a <code>werkzeug.datastructures.FileStorage</code> object.</p>
  
  <p>One of the functions I need this file in, also needs to be able to open files from path objects, so at the moment, I'm using <code>open(file_to_open)</code>. If possible, I would like to avoid writing the uploaded file to a temporary file, just to read it in again. So my question consists of two parts:</p>
  
  <p>1: Would it be possible to "translate" this FileStorage object to a file object?</p>
  
  <p>2: If so, would this also work on the current code (<code>open(file_to_open)</code>)?</p>