Fixed the compressor to use a byte array for binary output.