Convert byte[] to file stream without writing to disk
<p>We are getting a input from a web service as a <code>byte[]</code> (which we process internally) and we need to upload to another web service which accepts only a file stream.</p>

<p>How can i to convert <code>byte[]</code> to a file stream <strong>without writing to disk</strong> in C#?</p>

<hr>

<p><strong>Edit:</strong> This is not duplicate. I am not asking how to convert <code>byte[]</code> to memory stream or file steam. I am asking how to convert <code>byte[]</code> to file stream <strong>without writing to disk</strong>. Please note that, I need to send the data as file steam to a third party web service, which I do not have access. This web service accepts only as file stream.</p>

<p>So far I have below code:</p>

<pre><code>string fileWritePath = "c:\\temp\\test.docx";
//here fileContent is a byte[]
File.WriteAllBytes(fileWritePath, fileContent);
FileStream fileStream = new FileStream(fileWritePath, FileMode.Open, FileAccess.Read);
</code></pre>

<p>I do not want to write the file to local disk and create file stream.</p>