I had validated this.To download SSMS which is more than 500M+
 static void Main(string[] args)
{
string url = "https://go.microsoft.com/fwlink/?linkid=2108895&clcid=0x409";
DownloadBigFile(new Uri(url), "ssms.exe");
} static void DownloadBigFile(Uri url, string outputFilePath)
{
const int BUFFER_SIZE = * ;
using (var outputFileStream = File.Create(outputFilePath, BUFFER_SIZE))
{
var req = WebRequest.Create(url);
using (var response = req.GetResponse())
{
using (var responseStream = response.GetResponseStream())
{
var buffer = new byte[BUFFER_SIZE];
int bytesRead;
do
{
bytesRead = responseStream.Read(buffer, , BUFFER_SIZE);
outputFileStream.Write(buffer, , bytesRead);
} while (bytesRead > );
}
}
}
}

最新文章

  1. linux多文本替换内容
  2. 使用Dhcpstarv解决DHCP服务器冲突问题
  3. java解惑 读书笔记
  4. zabbix 二 zabbix agent 客户端
  5. php随机抽奖
  6. Sphinx安装流程及配合PHP使用经验
  7. window10单机安装storm集群
  8. 简单的将Excel数据同步到SqlServer数据库中
  9. 把axios封装为vue插件使用
  10. COM中参数标识
  11. 【Mybatis】【2】处理大于号小于号及其他特殊字符
  12. CentOS7双网卡绑定配置
  13. win 10 安装visual studio 2010
  14. [转]IOS 崩溃日志分析
  15. HttpClient post封装
  16. 初识storm
  17. 初探APT 攻击
  18. Qt中容器类应该如何存储对象
  19. CRC全套~~~ 转载
  20. Shadow Map 原理和改进 【转】

热门文章

  1. docker面试题和解答(一)
  2. SpringBoot:CORS处理跨域请求的三种方式
  3. (五十一)c#Winform自定义控件-文字提示-HZHControls
  4. python-pyppeteer模块使用汇总
  5. Place an Action in a Different Location 设置按钮的显示位置
  6. ThinkPHP5.x.x各版本实战环境getshell
  7. GO 全面解析 json tag 篇
  8. 以特定用户和组来执行某个程序 - linux
  9. QPNP 8909 8916 充电相关(2)【转】
  10. Octave绘图数据