read tiff image

A

autogoor

How can I read a tiff with ImageIO?

I tried

BufferedImage image = ImageIO.read(new File(file))

It compiles fine, but return a null when I run the program. I think
ImageIO does not have the tiff reader registered yet. How can I
register it?

Thanks,

Autogoor
 
R

Roland

How can I read a tiff with ImageIO?

I tried

BufferedImage image = ImageIO.read(new File(file))

It compiles fine, but return a null when I run the program. I think
ImageIO does not have the tiff reader registered yet. How can I
register it?

Thanks,

Autogoor
Get the Java Advanced Imaging Image I/O Tools. It adds some additional
readers/writers for ImageIO, including TIFF.
<http://java.sun.com/products/java-m...io-1_0_01-fcs-docs/overview-summary.html#TIFF>

Note: get the *I/O tools* only, not the complete JAI package (unless you
need/want to use its functionality)
<http://java.sun.com/products/java-media/jai/index.jsp>
--
Regards,

Roland de Ruiter
___ ___
/__/ w_/ /__/
/ \ /_/ / \
 
A

autogoor

Thanks, I download the jai_imageio-windows-i586.jar. But how can I use
it? Is some confiugration needed?

Thanks,

Autogoor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,301
Latest member
BuyPureganics

Latest Threads

Top