Re: Streaming buffered image using Cocoon

2011-05-25 Thread JeVeoy
-- View this message in context: http://old.nabble.com/Streaming-buffered-image-using-Cocoon-tp31655697p31697410.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: Streaming buffered image using Cocoon

2011-05-24 Thread JeVeoy
-buffered-image-using-Cocoon-tp31655697p31693420.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

Re: Streaming buffered image using Cocoon

2011-05-24 Thread Thomas Markus
hi, it remains pretty simple :) regards Thomas map:match pattern=time.jpg map:call function=intercept / /map:match map:match pattern=generate.image map:read type=timeimg/ /map:match function intercept() { var backgroundVariable = '#44ffFF'; var text = String(new Date());

Re: Streaming buffered image using Cocoon

2011-05-23 Thread Thomas Markus
Hi, thats pretty simple. Create a reader like this (creates a png with current timestamp in red): public class TestImageReader extends AbstractReader { public String getMimeType() { return image/png; } public void generate() throws IOException, SAXException,

Re: Streaming buffered image using Cocoon

2011-05-21 Thread JeVeoy
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

Re: Streaming buffered image using Cocoon

2011-05-20 Thread Thomas Markus
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

Streaming buffered image using Cocoon

2011-05-19 Thread JeVeoy
to the browser using sitemap.xmap? -- View this message in context: http://old.nabble.com/Streaming-buffered-image-using-Cocoon-tp31655697p31655697.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e

Re: Streaming buffered image using Cocoon

2011-05-19 Thread Steven Dolg
Am 19.05.2011 15:49, schrieb JeVeoy: I'm using Cocoon 2.2 Case I would like to merge 2 images in PNG format on the server (buffered image) and then send the result back as a stream. Thus NOT saving the image on the server. As an example you could have a nice background picture of a field. The