Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a program I've written that outputs a report in html format. This report can get very large (20-30Mb), and this tool can be run hundreds of times.

To reduce disk usage, I'd like to compress the report, but have it still readable by a browser. I know most modern browsers can accept compressed html from a web server - is there any way to make then accept it from a disk file?

share|improve this question

Assuming you are on Windows and all the report files are output to the same location you could just compress the folder.

Right click over the folder name then click on the Advanced button in the General tab.

The Advanced Attributes dialog has a "Compress contents to save disk space" option.

Advanced Attributes dialog

Obviously this only compresses the file locally. If you want to send it so someone else it will still need to be added to a zip file.

share|improve this answer
This isn't a bad idea - but I also will have to send these reports to customers via email, preferably without making their life complicated by having them extract a zip file or similar. I was hoping there was a way of having a "compressed html" file that browsers would just read. – xorsyst Mar 7 '11 at 9:27
@xorsyst - you should have included that information in the question. – ChrisF Mar 7 '11 at 9:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .