I'm running a C# Dot Net 4.0 web app. The app needs to be able to upload and download a variety of small (no more than 5meg) files, usually Word and images. These files are stored in a SQL database. The download pulls the data out of the db and puts it in a byte array. My problem was that uploads were working fine but downloads were failing in Internet Explorer. (Chrome and FF were fine.)
Frankly I don't do much of this stuff and I cook-booked the original download code.  (All too many examples out there...)  After a bit more searching and experimenting I ended up with this.
It appears to solve the problem with IE. I'm just wondering if there are still any 'gotchas' in this.
The stuff that is commented out is from the original problem code.  The stuff that is in bold italics is added.  ('Bytes' is the byte array containing the file.)
// HttpContext.Current.Response.ClearHeaders(); ...

Go to the complete details ...