Im am using JFreeChart and I want to encode the image using the ACME encoder to output a chart to a web page. When the image is done encoding I get the encoded code displayed on the page instead of the Image itself. I have followed all of your suggestions but they have not worked for me. I am not using an applet, I want to do it from a servlet (.jsp) file. What should my HTML file look like, am I missing a step after the encoding is done? As you can see I am really confused and out of ideas as to what to do? Can someone please help me...
Thanks
<%
BufferedImage image = new BufferedImage(500,500,Buffered_Image.TYPE_INT_RGB);
Graphics g = image.getGraphics();
g.setColor(Color.green);
g.fillRect(0,0,10,10);
ServletOutputStream outs = response.getOutputStream();
new GifEncoder(image,outs).encode();
outs.close();
%>
This is just the code that I am using in a .jsp file to try to find my problem without having to worry about using JFreeChart yet...