title: Create virtual file path from stream
body: <p>I have a general question concerning C# &amp; Windows API:</p>
  
  <p>My task is loading a file from a document management system (DMS) and create a byte array from this file. From the developer of the DMS I got a dll which provides a method like this:</p>
  
  <pre><code>loadFile(int DocId, string PathToSaveFile);
  </code></pre>
  
  <p>Unfortunately the given dll does not provide me a method to deliver the requested file as a byte array or any kind of stream. Now my question, is it possible with C# to create some kind of virtual path which does actually not exists on secondary storage. Instead all bits and bytes written to this path are forwarded to me in a stream? The goal of my intention is to increase the performance as I don't have to write data to a hard drive.</p>
  
  <p>I already searched a lot, but actually don't know the keywords I have to look for. Perhaps someone can give me a hint or just tell me that it is not possible at all.</p>