title: What is the alternative for HttpContext.Response.OutputStream to use in WebAPI's HttpResponseMessage
body: <p>I'm writing a WebAPI for handling PDF documents. It was written in a ashx page earlier implementing IHttpHandler and getting the context using HttpContext. I'm now writing it using WebAPI. In WebAPI we have HttpResponseMessage. For HttpContext.Response.BinaryWrite we have new ByteArrayContent in HttpResponseMessage. But what is the alternative for HttpContext.Response.OutputStream in WebAPI? I need to have the alternative of OutputStram in WebAPI because im passing this OutputStream as a parameter to another dll.</p>
  
  <p>Code in ashx:</p>
  
  <pre><code>SomeReport.PdfReport rpt = new SomeReport.PdfReport(docID);
  rpt.CreateReport(context.Response.OutputStream);
  </code></pre>