Hi all: I've isolated the problem to my development machine running MacOS X Mountain Lion 10.8, and this version of Java:
$ java -version java version "1.6.0_37" Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909) Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode) I'm just building the plugin in this machine and testing on Ubuntu GNU/Linux 12.04 works just fine. Would this worth start an issue? It's seems to be just in my particular environment. Greetings On Nov 20, 2012, at 7:16 PM, Jorge Luis Betancourt Gonzalez <[email protected]> wrote: > 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 > > 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 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

