[JAI] lossless jpeg decompression.
I am trying to decode the Jpeg compression using JPEGImageDecoder class. I
am sucessfully able to decode the 'Lossy Jpeg Compression'. But for lossless
the same function crashes. this is how i am doing it.
I am using this for decoding Dicom images that are compressed with JPEG.
In this, after the header, the JPEG header and pixels are also encapsulated
in seperate tags.
I've taken the pixels from the encapsulation and made a stream from it, thus
enabling the JPEGImageDecoder class to decode the image.
this works perfectly for JPEG - lossy images. but crashes when I use the
same on a lossless compressed image.
is there something that I am missing?
Should I be using something from the JPEG-header ?
or does'nt JAVA support lossless decompression?
Thanks in advance.
Computer Engineer (Java Developer),
Eroglu Software Company,