title: Return a file stream using SwashBuckle
body: <p>I want to return a file stream using SwashBuckle</p>
  
  <pre><code>    [System.Web.Http.HttpGet]
      [System.Web.Http.Route("Files/{uid}/file")]
      [SwaggerResponse(HttpStatusCode.OK, Type = typeof(Byte[]))]
      public HttpResponseMessage DownloadFile(String uid, String fileName)
      {
          return Safe.Execute(() =&gt;
          {
              var api = new FileApi();
              var stream = api.GetFile(uid, fileName);
  
              HttpResponseMessage result = new HttpResponseMessage(HttpStatusCode.OK);
              result.Content = new StreamContent(stream);
              result.Content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");
              result.Content.Headers.ContentDisposition =
                       new ContentDispositionHeaderValue("attachment")
                       {
                           FileName = CalcFileName(fileName)
                       };
              return result;
          });
      }
  </code></pre>
  
  <p>And I see that the file is returned, but... somehow... encoded. A 3798 long file becomes 5789 byte after download through UI, and the content of the file is very similar to the expected, but extra bytes are included, like it would interpreted as a String and became an UTF-8 encoded version.</p>
  
  <p>Nothing changes, when I replace it as:</p>
  
  <pre><code>    [SwaggerResponse(HttpStatusCode.OK, Type = typeof(Stream))]
  </code></pre>
  
  <p>The Swagger generated desciptor looks as:</p>
  
  <pre><code>        "produces": [    
            "application/json",    
            "text/json",    
            "application/xml",    
            "text/xml"    
          ],    
          ...
          "responses": {    
            "200": {    
              "description": "OK",    
              "schema": {    
                "format": "byte",    
                "type": "string"
          }
  </code></pre>
  
  <p>Any idea how to implement returning a file stream from the controller method?</p>