You can compress it (create a tar file for example) when moving the file from its temp upload location to a more permanent place on disk. However the file types you are talking about are binary files which don't always compress very much. Second no one compression scheme will result in the best results for all file types.
Steve Robillard
2010-05-05 21:55:49