This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am running a simple compression program I found on the web. I'm trying to get a better idea of how it works. It runs OK but the final Zip file isn't compressed. I am compressing 2 pictures which are about 1.6 MB total but the final zip file is also 1.6 MB. Attached is my source. Any suggestions?
JPG's are already compressed, so it's unlikely they will be compressed further (otherwise, what's to stop you from compressing and re-compressing until you have 1 bit?). Try it with text files. They compress dramatically.