我正在尝试从我的 Web 服务下载文件 (.txt)。我的网络服务使用此代码
WebClient req = new WebClient();
HttpResponse Response = HttpContext.Current.Response;
Response.ContentType = "image/jpeg";
Response.AddHeader("Content-Disposition", "attachment;filename=" +
fileName);
Response.WriteFile("C:\\Temp\\Storage\\" + (fileName));
Response.End();
我想从客户那里打电话。这是怎么做的?