TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Use compressed data directly - from ZIP files or gzip http response

29 pointsby philfover 13 years ago

2 comments

j_sover 13 years ago
I was hoping for something more like this:<p>Extracting files from a remote ZIP archive (accessing files stored inside a zip file without downloading the whole zip archive)<p><a href="http://www.codeproject.com/KB/cs/remotezip.aspx" rel="nofollow">http://www.codeproject.com/KB/cs/remotezip.aspx</a><p>And would like to see an implementation of a server-side means of generating arbitrary .zip files (just storing, without compression) dynamically... for automatic large download integrity verification. Places like <a href="http://put.io" rel="nofollow">http://put.io</a> could use something like that.
评论 #3121807 未加载
amitparikhover 13 years ago
If you know that the input data is ASCII-encoded (or Unicode-encoded and capable of being ASCII-encoded), then using Python's cStringIO package (<a href="http://docs.python.org/library/stringio.html" rel="nofollow">http://docs.python.org/library/stringio.html</a>) is preferential for the significant speed boost.