getting filename of an image thats produced with JPEGImageEncoder?

I have something like:

response.setContentType("image/jpeg");

OutputStream output = response.getOutputStream();

JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(output);

encoder.encode(bi);

output.close();

The result when executed in a browser is a jpeg image file. What i want to do is get the file name of the generated image so that i can use <img src so that i can integrate it with the layout i have.

Message was edited by:

spear_arrow

Message was edited by:

spear_arrow

Message was edited by:

spear_arrow>

[632 byte] By [spear_arrowa] at [2007-11-27 8:30:32]
# 1
nevermind. i just did <img src="thejspthatgeneratestheimage.jsp"> and i can arrange it as needed on another image.
spear_arrowa at 2007-7-12 20:21:10 > top of Java-index,Java Essentials,Java Programming...
# 2
JSPs producing images is sooooooooooooooo wrong.
CeciNEstPasUnProgrammeura at 2007-7-12 20:21:10 > top of Java-index,Java Essentials,Java Programming...
# 3
n/m
Dingelbata at 2007-7-12 20:21:10 > top of Java-index,Java Essentials,Java Programming...
# 4
actually, i am using struts. I have an action servlet and with a few helper classes those do the generating. I mentioned jsp's to simplify the problem and to explain it.Message was edited by: spear_arrow
spear_arrowa at 2007-7-12 20:21:10 > top of Java-index,Java Essentials,Java Programming...