How can I do LZW decoding in Java?

前端 未结 4 2005
不知归路
不知归路 2020-12-18 04:19

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 o

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-18 04:51

    Here are a couple of links:

    • http://www.cs.sfu.ca/CC/365/li/squeeze/LZW.html

    • http://u.cs.biu.ac.il/~freskom1/AlgProg1/Progs/LZW.java

    • http://www.codeproject.com/KB/java/lzw.aspx

    And there are others.

    Indeed if the images are LZW compressed TIFF files, The Java Advanced Imaging API apparently supports decoding directly (though not encoding it seems).

提交回复
热议问题