commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damjan Jovanovic <damjan....@gmail.com>
Subject Re: [sanselan]
Date Tue, 05 Jul 2011 15:49:21 GMT
On Mon, Jul 4, 2011 at 11:21 PM, shadab <shadab@student.chalmers.se> wrote:
> 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
>
>
>

Can you try it with SVN HEAD?

Damjan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message