changed compressor to work with byte[] instead streams