Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.