--
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
-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
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());
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,
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
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
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
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