Java emulation of MySQL COMRESS DECOMPRESS functions -
i'd insert byte data mysql varbinary column. data large want store in compressed way.
i'm using percona 5.6 mysql. emulate compress function of mysql in java , insert result in database. use mysql decompress function in order access data. there way it?
i have tried using standard java.zip package. doesn't work.
edit. phrased differently, java equivalent of php's gzcompress
(zlib)?
the result of compress four-byte little endian length of uncompressed data, followed zlib stream containing compressed data.
you can use deflater
class in java compress zlib stream. precede result of four-byte length.
Comments
Post a Comment