I have a servlet that i would like to use to output images.
The problem is, when I output the image as a string, it doesnt render ('The image 'http://.../'
cannot be displayed because it contains errors).
If i also send the image to a file, I get a renderable image.
This is the code that I am trying to use with no luck:
PrintWriter out = response.getWriter();
where image is a byte. If i look at the source for the page, I actually see the textual representation of the gif.
Any ideas of how to get this to display properly?