I'm not sure if this is the right section to post this in, but I guess it's as good as any.

I want to compress a webcam image to transfer it over the p2p network I'm designing, although I'm not sure of the best mothod to accomplish this. It would have to be a reversable compression, so the image can be exploded into a readable format after transfer. Any ideas?