阅读背景:

如何在不将整个文件加载到内存的情况下读取/流式传输文件?

来源:互联网 

How can I read an arbitrary file and process it "piece by piece" (meaning byte by byte or some other chunk size that would give the best read performance) without loading the entire file into memory? An example of processing would be to generate an MD5 hash of the file although the answer could apply to any operation.How can I read an arbitrary file and process it




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: