ZickZack has uploaded a patch.
Description:
I had trouble with an MVC application and downloading an Excel Sheet with the method SaveAs(stream)
I changed the method public void SaveAs(Stream stream)(see comments) and now it works fine.
I also changed the CopyStream method and add rewind in the beginning and flush() at the end.
Please look for comments like // dm 20130422