[OpenMap Users] PNG problems

From: Ben Podoll <benjamin.podoll_at_und.edu>
Date: Sun, 15 Aug 2004 00:16:46 -0500

Has anyone ever run into errors reading PNG files with java?

I have a problem once in awhile with PNG files not able to be read with the
java ImageIO.read() method. It is weird since the PNG file is viewable in
any other viewer or browser but java just complains. I looked into it a bit
and noticed that it might be that java is sticking to the PNG standard very
strictly (or is only able to read PNG of a certain version). But in any
event here is the error I get:

java.lang.ArrayIndexOutOfBoundsException: 4
   com.sun.imageio.plugins.png.PNGImageReader.parse_PLTE_chunk(Unknown
Source)
   com.sun.imageio.plugins.png.PNGImageReader.readMetadata(Unknown Source)
   com.sun.imageio.plugins.png.PNGImageReader.readImage(Unknown Source)
   com.sun.imageio.plugins.png.PNGImageReader.read(Unknown Source)
   javax.imageio.ImageIO.read(Unknown Source)
   javax.imageio.ImageIO.read(Unknown Source)
   com.meridian.mdss.data.MdssImage.downloadImage(MdssImage.java:48)
   com.meridian.mdss.data.MdssImage.fetchDataSet(MdssImage.java:37)
   com.meridian.mdss.data.DataCacher.serializeObject(DataCacher.java:135)
   com.meridian.mdss.data.DataCacher.synchronize(DataCacher.java:108)
   com.meridian.mdss.data.DataCacher.run(DataCacher.java:71)



--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Sun Aug 15 2004 - 01:21:27 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:05 EDT