Hello,

I wonder whether there is provision in RIFE for an element which writes out content as a binary stream e.g. a PNG image representing a graph or chart created with a charting package? I can create a page with an embedded element which creates the chart, I'm just stuck as to how to output the PNG data using RIFE functionality. I know how to do this using HttpServletResponse e.g:

BufferedImage image = ImageIO.read( url );
response.setContentType( "png" );
ImageIO.write( image, "png", out );

However I don't think this is right here - anyone point me in the right direction?

Thanks,

David Herbert.
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to