I'm trying to read the meta-data of a PNG file with java following the solution proposed here.
But the method ImageIO.getImageReaders(inputStream)
is returning an empty list of readers.
I assured that the stream is correct by reading it via ImageIO.read
and rendering the resulting Image to the screen.
And this is why I'm confused: since ImageIO.read
returns a valid image, i assume there is some ImageReader
claiming to be able to interpret this stream. Is there a difference between interpreting image data and the meta-data of the image?
Any hints or even solutions to this problem?
Thank you very much.