public ActionResult Download(string name) { BlobManager BlobManagerObj = new BlobManager("trainingblobcontainer"); CloudBlockBlob cloudBlockBlob = BlobManagerObj.Download(name); MemoryStream memStream = new MemoryStream(); cloudBlockBlob.DownloadToStream(memStream); Response.ContentType = cloudBlockBlob.Properties.ContentType.ToString(); Response.AddHeader("Content-Disposition", "Attachment; filename=" + name); Response.AddHeader("Content-Length", cloudBlockBlob.Properties.Length.ToString()); Response.BinaryWrite(memStream.ToArray()); Response.Flush(); Response.Close(); return(RedirectToAction("Get")); }