摘要: 内存限制 大文件读写操作,由于内存限制问题,不要直接使用fs.readFile 和 fs.writeFile。 必须使用fs.ReadStream 和 fs.WriteStream 来对文件进行读写操作。 fs.ReadStream:上传大文件 var urlparse = require('url').parse , http = require('http') , fs = require('... 阅读全文
posted @ 2011-08-16 12:19 MK2 阅读(12163) 评论(1) 推荐(4) 编辑