controller1 ASP.NET MVC FileStreamResult Example ASP.NET MVC FileStreamResult Example. Controller 프로젝트. // /FileStream public FileStreamResult Stream() { var fileContent = new byte[] { Ascii.one, Ascii.Comma, Ascii.two, Ascii.Comma, Ascii.three }; var stream = new MemoryStream(fileContent); var fileStreamResult = new FileStreamResult(stream, mimeType); fileStreamResult.FileDownloadName = "FileStreamExample.csv"; return fileStreamResult; } // F.. 2024. 1. 8. 이전 1 다음 반응형