//在MVC框架中,如何在用户上传文件后在页面中打开文件,写一段代码?
//下面是一段代码,用于在MVC框架中,在用户上传文件后在页面中打开文件:
//获取文件路径 string filePath = Request.Files["file"].FileName;
//打开文件 System.IO.FileStream fs = new System.IO.FileStream(filePath, System.IO.FileMode.Open);
//读取文件内容 byte[] fileBytes = new byte[fs.Length]; fs.Read(fileBytes,