read jpeg2000 files in java

后端 未结 4 605
北荒
北荒 2020-12-06 11:58

I have a code using a byte[] that contains a image jpeg2000 bytes. I want show this in jLabel component howto do this? Anyone have idea or code to

4条回答
  •  误落风尘
    2020-12-06 12:32

    The only options I know are all based on jj2000.

    jai-imageio-core provides support through an additional third-party module:

    https://github.com/stain/jai-imageio-core

    https://github.com/jai-imageio/jai-imageio-jpeg2000

    It'll register itself with ImageIO and you'll then be able to read jpeg2000 files as you would any png, bmp or jpeg.

    Although jj2000 is in itself an option, the api is not designed for day-to-day use.

    Other options include JMRTD, which provides its own wrapping for jj2000, or a commercial offering, JDeli.

提交回复
热议问题