commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shadab <sha...@student.chalmers.se>
Subject [sanselan]
Date Mon, 04 Jul 2011 21:21:22 GMT
Hi

I get the exception could not read the block when I try to get metadata from images.

java.io.IOException: Could not read block (block start: 31742, block length: 53177352, data
length: 25713).
    at org.apache.sanselan.common.byteSources.ByteSourceArray.getBlock(ByteSourceArray.java:47)
    at org.apache.sanselan.formats.tiff.TiffReader.getTiffRawImageData(TiffReader.java:461)
    at org.apache.sanselan.formats.tiff.TiffReader.readDirectory(TiffReader.java:216)
    at org.apache.sanselan.formats.tiff.TiffReader.readDirectory(TiffReader.java:110)
    at org.apache.sanselan.formats.tiff.TiffReader.readDirectories(TiffReader.java:101)
    at org.apache.sanselan.formats.tiff.TiffReader.read(TiffReader.java:448)
    at org.apache.sanselan.formats.tiff.TiffReader.readContents(TiffReader.java:438)
    at org.apache.sanselan.formats.tiff.TiffImageParser.getMetadata(TiffImageParser.java:124)
    at org.apache.sanselan.ImageParser.getMetadata(ImageParser.java:81)
    at org.apache.sanselan.formats.jpeg.JpegImageParser.getExifMetadata(JpegImageParser.java:366)
    at org.apache.sanselan.formats.jpeg.JpegImageParser.getMetadata(JpegImageParser.java:307)
    at org.apache.sanselan.Sanselan.getMetadata(Sanselan.java:978)
    at org.apache.sanselan.Sanselan.getMetadata(Sanselan.java:971)
    at org.apache.sanselan.Sanselan.getMetadata(Sanselan.java:946)

There is also an issue for it
https://issues.apache.org/jira/browse/SANSELAN-13

I wonder if anybody solve this issue or knows a workaround or can recommend any other libraries
(except Tika ) that I can use to extract XMP EXIF and other metadata from images.

Many thanks and please answer quickly



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message