, . , , . , , IIS , , . .
FileInfo path = new FileInfo(filePath);
response.AddHeader("Content-Length", path.Length.ToString());
response.Flush();
byte[] buffer = new byte[ 4 * 1024 ];
using(FileStream fs = path.OpenRead()){
int count = 0;
while( (count = fs.Read(buffer,0,buffer.Length)) >0 ){
if(!response.IsClientConnected)
{
break;
}
response.OutputStream.Write(buffer,0,count);
response.Flush();
}
}
, 4kb , 4kb.