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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -