你好,欢迎来到电脑编程技巧与维护杂志社! 杂志社简介广告服务读者反馈编程社区  
合订本订阅
 
 
您的位置:技术专栏 / Linux开发
C#实现大文件分块发送到客户端(2)
 

1. A user selects a group of files to download as a single zip and then
clicks the download link.
2. The server creates the Zip file (I've confirmed that the memory used by
the zip creation process is being released).
3. The server then streams the zip file from a temp directory to the
client.
4. The user is immediately prompted for the location and filename to save
the zip file as.  However, during this time the memory utilization on the
server increases by 5 times the size of the zip file (i.e. a 10 MB zip
file consumes 50 MB of memory during this transfer).
5. Until the entire file is streamed to memory on the server, IE on the
Mac is displaying a status of "Waiting for data".  Once the file is
streamed to memory, IE on the Mac begins the actual download.
6. Once the download is completed, the memory on the server does not get
released (I've let the server sit for an hour with no activity to see if
the GC would do the cleanup, but it did not).

(编辑:aniston)

  推荐精品文章

·2024年12月目录 
·2024年11月目录 
·2024年10月目录 
·2024年9月目录 
·2024年8月目录 
·2024年7月目录 
·2024年6月目录 
·2024年5月目录 
·2024年4月目录 
·2024年3月目录 
·2024年2月目录 
·2024年1月目录
·2023年12月目录
·2023年11月目录

  联系方式
TEL:010-82561037
Fax: 010-82561614
QQ: 100164630
Mail:gaojian@comprg.com.cn

  友情链接
 
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