title: "Failed to construct 'Blob': The provided value cannot be converted to a sequence" when downloading file
body: <p>I'm trying to download and save a PDF file using ajax/jquery (I know..).</p>
  
  <p>This is what I have on the server side:</p>
  
  <pre><code>        public HttpResponseMessage GetPdf()
          {
              var pdf = generatePdfByteArray(); // byte[]
  
              var result = Request.CreateResponse(HttpStatusCode.OK);
              result.Content = new ByteArrayContent(pdf);
              //result.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment")
              //{
              //    FileName = "blah.pdf"
              //};
  // tried with and without content disposition.. shouldn't matter, i think?
              result.Content.Headers.ContentType = new MediaTypeHeaderValue("application/pdf");
  
              return result;
          }
  </code></pre>
  
  <p>This is the client side:</p>
  
  <pre><code>    let ajaxOptions = {
      url: '/url',
      type: "GET",
      accepts: "application/pdf",
      success: (data) =&gt; {
          let blob = new Blob(data, {
              type: "application/pdf"
          }); // &lt;-- this fails
  
          // stuff...
      }
  };
  $.ajax(ajaxOptions);
  </code></pre>
  
  <p>Any ideas what's wrong with this?</p>