C# 断点续传
- 作者:zhaozj
- 发表时间:2020-12-23 10:39
- 来源:未知
System.IO.Stream iStream = null ; // Buffer to read 10K bytes in chunk: byte [] buffer = new Byte[ 10240 ]; // Length of the file: int length; // Total bytes to read: long dataToRead; // Identify the file to download including its path. string filepath = @" E:/software/SQL Server 2000 Personal Edition.ISO " ; // Identify the file name. string filename = System.IO.Path.GetFileName(filepath); try { // Open the file.