Thomas Markus wrote: > > hi, > > create a reader and stream your image. see AbstractReader.out and beware > of org.apache.cocoon.util.BufferedOutputStream.realFlush() > > regards > Thomas > >> You can use >> javax.imageio.ImageIO.write(RenderedImage, String, OutputStream) >> to write directly into an OutputStream. >> >> You just need to get the OutputStream from the original HTTP request. >> >> HTH, >> Steven > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org > For additional commands, e-mail: users-h...@cocoon.apache.org > > >
First of all: thank you so much for helping me out, Steven & Thomas! Then: I've tried my best to see if I could get a working example to run using either javax.imageio.ImageIO.write(RenderedImage, String, OutputStream) or AbstractReader.out, but to no luck. Googling didn't quite help either. I'm very sorry for my lack of knowledge... Hope you can forgive me. Pipeline for an image-reader is, as far as I know, defined in sitemap.xmap like this: <map:match pattern="*.jpg"> <map:read type="image" src="path/{1}.png" mime-type="image/png"> </map:read> </map:match> How can I make use of AbstractReader.out in this definition? -- View this message in context: http://old.nabble.com/Streaming-buffered-image-using-Cocoon-tp31655697p31670434.html Sent from the Cocoon - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org