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