Right now I am using Oracle utility procedure, UTL_COMPRESS.LZ_COMPRESS()
, to compress some data. But the problem is it compresses the thing using GZIP compatible format, which is not also ZIP compatible unfortunately. Therefore, the Windows XP native decompression utility can not open it (you know that compressed folder thingie). And user have to use some other utility, like 7Zip
, Winzip
, or Filzip
etc., in order to decompress that.
So, we end up having a plan of retrieving GZIP data from Oracle, uncompress it using Java, and compress it back to ZIP (something that can be decompressed by Windows utility). It sounds ridiculous to compress-in-gzip -> decompress -> compress-again-in-zip
.
Any idea how can we compress it in the desirable format in the first place, to avoid all this extra computation?