标签:mes result asp begin div sage api turn 不用
public HttpResponseMessage Post(string version, string environment, string filetype) { var path = @"C:\Temp\test.exe"; HttpResponseMessage result = new HttpResponseMessage(HttpStatusCode.OK); var stream = new FileStream(path, FileMode.Open, FileAccess.Read); result.Content = new StreamContent(stream); result.Content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream"); return result; }
stream.Seek(0, SeekOrigin.Begin);
或stream.Position = 0;
标签:mes result asp begin div sage api turn 不用
原文地址:https://www.cnblogs.com/nodegis/p/10108559.html