Specify the filename of a dynamically generated image?
posted 10 years ago
I have a servlet that dynamically generates images. Everything is working fine, except when the client application (say, a browser) attempts to save the image, the filename is something like imgserver.do.png. I would like to be able to control the filename of the generated image, as visible to the client. I know there is a way to do this, I think bby setting a response header, but I can't remember how. Can anyone help?
Author and ninkuma