title: CherryPy 3.6 - reading Multipart Post http request
body: <p>I coded a java client that sends a string of meta information and a byte array through a multipart post http request to my server running cherrypy 3.6.</p>
  
  <p>I need to extract both values and I coded this in python3 on the server side to find out how to manipulate the result as I can't find any relevant documentation over internet that explains how to read this html part</p>
  
  <pre><code>def controller(self, meta, data):
  
          print("meta", meta)
          print("data", type(data))
  </code></pre>
  
  <p>outputs :</p>
  
  <pre><code>my meta information
  &lt;class 'cherrypy._cpreqbody.Part'&gt;
  </code></pre>
  
  <p><strong>Note :</strong> <em>the data part contains raw binary data.</em></p>
  
  <p>How can I read the http part content into a buffer or output it to a disk file ?</p>
  
  <p>Thanks for your help.</p>