9
Cách đặt tên tệp tải xuống trong ASP.NET Web API
Trong lớp ApiControll của tôi, tôi có phương pháp sau để tải xuống một tệp được tạo bởi máy chủ. public HttpResponseMessage Get(int id) { try { string dir = HttpContext.Current.Server.MapPath("~"); //location of the template file Stream file = new MemoryStream(); Stream result = _service.GetMyForm(id, dir, file); if (result == …
140
c#
asp.net-web-api