public FileResult Download(){ byte[] fileBytes = System.IO.File.ReadAllBytes(@"c:foldermyfile.ext"); string fileName = "myfile.ext"; return File(fileBytes, System.Net.Mime.MediaTypeNames.Application.Octet, fileName);}
欢迎分享,转载请注明来源:内存溢出
public FileResult Download(){ byte[] fileBytes = System.IO.File.ReadAllBytes(@"c:foldermyfile.ext"); string fileName = "myfile.ext"; return File(fileBytes, System.Net.Mime.MediaTypeNames.Application.Octet, fileName);}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)