Hi:

I'm adapting a plugin written implementing the Parser interface to generate 
thumbnails of images (like Julien suggested), the thing is that after extending 
of the HtmlPArseFilter I'll delegate some metadata detection to Tika and I only 
worry about the thumbnail generation, the funny thing is that the plugin is not 
working any more, I've concluded that the call to: content.getContent() does 
not return all the retrieved content of the image. I use the getContent() call 
to to the following:

image = ImageIO.read(new ByteArrayInputStream(content.getContent()));

This used to work just fine, but now If I do the following to test:

ImageIO.write(image, "png", new File("test.png"));

I get a corrupted image, the only visible portion is a thing line in the top of 
the image. What's strange is that this same code, worked fine when I 
implemented the Parser interface.

Any thoughts on this issue?

Greetings!

10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS 
INFORMATICAS...
CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION

http://www.uci.cu
http://www.facebook.com/universidad.uci
http://www.flickr.com/photos/universidad_uci

Reply via email to