title: Chrome wants to save pdf as system.byte[]
body: <p>When saving a viewed pdf document with IE11 it displays the correct file name and extension, but Chrome shows it as System.Byte[]. Changing the file name to MyFileName.pdf and saving it works, but is not the ideal solution. </p>
  
  <p>Here is the code returning the document from the database and displaying it in a vb.net webforms popup page.</p>
  
  <pre><code>  strSQL = "SELECT PDF_Document FROM A_Documents WHERE Document_ID = " &amp; vID
          Dim vDocument As Byte() = vService.ReturnScalarByte(strSQL, Session("HOAID"))
          Response.Clear()
          Response.AddHeader("Accept-Header", vDocument.Length.ToString())
          Response.AddHeader("Content-Disposition", "inline; filename=" &amp; vDocument.ToString())
          Response.ContentType = ("application/pdf")
          Response.BinaryWrite(vDocument)
  </code></pre>