if you want to compress grayscales pictures, you could also use RLE. This method is very simple but efficient for pictures. Example : Bin data : 00000000 00111000 00000000 Bytes : 10 3 11 This example just shows the mehod, but using it in this case isn't worthwhile. Hope it helps. -- Sacha Kaercher