Skip to content
Advertisement

Tag: lzw

How can I do LZW decoding in Java?

I have a database which contains picture data stored as a binary blob. The documentation says the data is encoded using LZW. I thought that I could decode it using the Zip or GZip input streams found in the Java library, but it didn’t work – I got an exception that said the format of the data is not correct.

Advertisement