On my controller side, I download the file using this code,
public ActionResult fileDownload(...) { .... .... using (MemoryStream ms = new MemoryStream())