title: Downloading exe files from database
body: <p>I have some exe files that I've uploaded into my database as I don't want them to be publicly accessible. I tried using a link button and a generic handler to serve the file using the following code:</p>
  
  <pre><code>Context.Response.Clear()
  Context.Response.ContentType = "application/exe"
  Context.Response.AppendHeader("Content-Disposition", "filename=program.exe")
  Context.Response.BinaryWrite(binaryfile)
  </code></pre>
  
  <p>The problem: Google Chrome does not treat the download as any other exe, instead after downloading it reports "program.exe is not commonly downloaded and could be dangerous." with a "discard" button and the option to "keep" the download is hidden under a context menu.</p>
  
  <p>Is there any other/better way to serve exe files stored in the database?</p>