【发布时间】:2012-06-26 15:54:14
【问题描述】:
目标: - 服务器端:验证凭据后将文件写入响应流。换句话说,不能公开访问该文件。 - 客户端:从http://xyz.com?credentials=abc下载此文件
到目前为止,ASPX 页面执行以下操作:
- 验证凭据
- this.Response.ContentType = "application/octet-stream";
- this.Response.BinaryWrite(binaryReader.ReadBytes(1024));
从 WinForms 应用程序下载此文件数据的最佳方式是什么?
【问题讨论】:
标签: c# asp.net .net stream response