public FileStreamResult DownFile(string content,string name)
{
ProInterface.ISubject ems = new ProServer.Service();
string fileName = ems.DownWord(content.Replace("newline", "\r\n"), name).ToString(); //ProInterface.ISubject ems = new ProServer.Service();
//object fileName = ems.DownWord(Fun.UserKey, ref err, ent);
string path = AppDomain.CurrentDomain.BaseDirectory + ("UpFiles\\") + fileName;
return File(new FileStream(path, FileMode.Open, System.IO.FileAccess.Read, FileShare.ReadWrite), "image/jpeg jpeg jpg jpe", fileName);
}
FileStreamResult 类型