Thursday, February 3, 2005

522.aspx

Extracting files from a remote ZIP archive

The Extracting files from a remote ZIP archive article on Code Project is both interesting and useful. It explains how you can download only the files you are interested in from a large .zip file on a remote server. The program explains how to implement it using HTTP, but the same approach can be used for FTP or files hosted on a file server.


The beauty of the program is that all the logic is on the client so it works with all web servers that supports HTTP resume. The program downloads the header part of the .zip to know which files are in the archive. It then uses the HTTP Range header (RFC 2616) to download only the parts of the zip it needs for the file(s) you want.


Via [Code Project newsletter]

No comments:

Post a Comment