// Read the bytes. while (dataToRead > 0) { // NOTE: Cannot do a Response.IsClientConnected check // here (as was in the original code) due to // not being able to detect a connection from a mac // download manager.
// Read the data in buffer. length = iStream.Read(buffer, 0, 10000);
// Write the data to the current output stream. Response.OutputStream.Write(buffer, 0, length);
// Flush the data to the HTML output. Response.Flush();
Copyright 2001-2010, www.comprg.com.cn, All Rights Reserved 京ICP备14022230号-1,电话/传真:010-82561037 82561614 ,Mail:gaojian@comprg.com.cn
地址:北京市海淀区远大路20号宝蓝大厦E座704,邮编:100089