title: Get FileStream from MVC controller to Client
body: <p>I use the code below to put a filestream into a response message, returned by an MVC controller. But how do I get the stream on the client side? Any any comment highly appreciated!
  Thanks!</p>
  
  <p>Server:</p>
  
  <pre><code>string filename = @"c:\test.zip";
  
  FileStream fs = new FileStream(filename, FileMode.Open);
  
  HttpResponseMessage response = new HttpResponseMessage();
  
  response.Content = new StreamContent(fs);
  response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");
  
  return response;
  </code></pre>