2
Answers

Pulling images from a database but wrong file name

nick 0

nick 0

20y
1.5k
1
I am pulling images from a database using a dummy aspx page as it were. The aspx page writes the image data on the response stream and the content type is set to image. This allows me to specify an image ID to the aspx page and it loads the image on the fly. Thats fine for showing the image but the title or name of the image is wrong if the user goes to the file menu and selects save as... The name of the page that loads these images is called Image.aspx and the file save dialog wants to save the file as image_aspx. I do not want to force my users to have to enter a file name here. Is there a way I can changed the title, file name or whatever so that the browser sees the name as, lets say image1.jpg?
Answers (2)