title: Display Stream in Kendo Window
body: <p>I am trying to display a PDF stream into a KendoUI window.  </p>
  
  <p>When the results are returned to the KendoUI window, the raw data of the PDF is displayed.  I started Fiddler to see if the content-type is coming through correctly.  Fiddler does show the proper content-type.</p>
  
  <p>I have tried a number of different interactions.  Each attempt yields the same result listed below.</p>
  
  <p>Here is snippet from the controller:</p>
  
  <pre><code>    public FileStreamResult DownloadV3()
      {
          //Create and populate a memorystream with the contents of the database table
          MemoryStream mstream = GetPDFData();
  
          HttpContext.Response.AddHeader("content-disposition", "attachment; filename=form.pdf");
  
          return new FileStreamResult(mstream, "application/pdf");
      }
  </code></pre>
  
  <p>Here is a snippet of what is displayed in KendoUI window:</p>
  
  <pre><code>%PDF-1.5 5 0 obj &lt;&gt;&gt;&gt; endobj 6 0 obj &lt;&gt;stream
  </code></pre>
  
  <p>Here is a snippet of the javascript:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function () {
      $("#view1").bind("click", winOpen);
  });
  function winOpen() {
      var id = '6CA88CA9-4F33-E211-84AC-B4A17689C6D9';
      var kendoWindow = $("#kjWindow").kendoWindow({
          title: "View File",
          width: "750px",
          height: "480px",
          content: "/home/DownloadV3/" + id,
          modal: true,
          actions: ["Close", "Refresh", "Maximize"]
      });
  }
  </code></pre>
  
  <p></p>
  
  <p>Any thoughts on what I am missing/</p>
  
  <p>Thanks.</p>
  
  <p>Steve</p>