PDA

View Full Version : File archival in ASP


codefox
12-10-2002, 09:20 AM
I have a whole lot of status reports for various months. The user can see the reports for the previous and the current months. If he/she wants to see an old report he selects the report date from a list-box. Now, all the reports that are not of the current or previous months are zipped as a single file. I need to extract the file the user wants based on the report date he selected from the list-box, from the zip file. How do I go about it?

Thanks.

glenngv
12-10-2002, 09:34 AM
if you want the old reports to be displayed then, the files should not be zipped. But since you do (obviously for space management), you can't do anything about it but instruct the user to unzipped them themselves.

codefox
12-10-2002, 09:42 AM
The requirement is that I need to zip the files :). BTW, is there any "free" ASP component to zip and unzip files.

glenngv
12-11-2002, 01:20 AM
nothing that i know of. :(

whammy
12-11-2002, 01:38 AM
I think learning how to use winzip or any similar file compression/decompression program is pretty much required for anyone that uses a computer...

It's built in to Windows 2000 and above... if someone doesn't know how to use WinZip or its "brother" for different operating systems, they shouldn't be using a computer. My mother who is 65 years old knows all about WinZip (with only a tiny bit of help from me ;)). :D

Basically what I'm saying is check to see if their file choice in the select dropdown is past a certain date (the date when you or your application decides to .zip the file perhaps), and if so, have them download a .zip file.

You can always include instructions with a little help icon and/or text and a link to winzip.com for people that are total internet newbies. :D