title: Compression - Bit
body: <p>I want to compress a file that looks like a BITMAP INDEX. (A file that is in binary format with "0" and "1" only). </p>
  
  <p>When using a byte to represent "0" or "1" the compression has a good ratio, because of the low randomness. </p>
  
  <p>Instead of using a byte to represent a "0" or "1" i would like to use a bit.
  Example:
  number 8 = 00001000
  numbeer 10 = 00001010</p>
  
  <p>So the uncompressed file will be 8 times smaller than the one with the bitmap index using byte to represent 0 and 1.</p>
  
  <p>But when I compress this file my ratio is very poor because the high randomness of the data.</p>
  
  <p>So my questions is. Is there any compression algorithms that the smaller unit is a bit instead of a byte? Or any tricks that i can use to lower the data randomness?</p>