【发布时间】:2014-11-11 14:25:41
【问题描述】:
而不是在 web 方法本身(如 SOAP XML)中返回二进制流(MTOM/Base64 编码),例如:
[WebMethod]
public byte[] Download(string FileName)
....
return byteArray;
此方法能否以某种方式响应(可能通过Server 对象)?:
Response.BinaryWrite(byteArray);
伪:
[WebMethod]
public DownloadBinaryWrite(string FileName)
...
Response.BinaryWrite(byteArray);
【问题讨论】:
标签: c# asp.net web-services webforms asmx