Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Detect if JPG is progressive

679826Feb 3 2009 — edited Feb 3 2009
Hi. Is there a way to detect if a jpg image is progressive? It's throwing an "Unsupported Image Type" exception when I try to read it in from an InputStream. Some investigation revealed it's a progressive JPG and apparently can't be handled:
BufferedImage image = null;
image = ImageIO.read(item.getInputStream());
Also, can the image's color model (RGB, CMYK, etc.) be detected using the JAI API? Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2009
Added on Feb 3 2009
3 comments
246 views