1

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?

1 Answer 1

3

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.

2
  • 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, 2011 at 9:27
  • @xorsyst - you should have included that information in the question.
    – ChrisF
    Mar 7, 2011 at 9:31

You must log in to answer this question.

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