title: How to save a file into a buffer?
body: <p>I am trying to parse some xml files via  a webdav interfaces using <a href="https://pypi.org/project/webdavclient3/" rel="nofollow noreferrer">webdavclient3</a>.</p>
  <p>There is a resource API section where the author claims that you can read/write a file into a buffer.</p>
  <pre><code>res1 = client.resource(&quot;dir1/file1&quot;)
  res1.read_from(buffer)
  res1.write_to(buffer) 
  </code></pre>
  <p>What is the buffer stands for and how i can create one so i do not need to save the file localy?</p>