9
Jak ustawić nazwę pobierania pliku w ASP.NET Web API
W mojej klasie ApiController mam następującą metodę pobierania pliku utworzonego przez serwer. 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 == null) { return Request.CreateResponse(HttpStatusCode.NotFound); } result.Position = 0; …
140
c#
asp.net-web-api