Compression and decompression using convenience methods