G
Guest
(appologies for re-post, but my no-spam alias was not configured correctly).
Hi,
I'm using VS2005 to create a web site.
On one of my aspx pages I have an ImageButton that displays an image that is
created in a seperate page.
ImageButton1.ImageUrl = "EmbeddedPage.aspx";
The EmbeddedPage.aspx generates the image to be displayed and returns the
image thus:
Bitmap image;
..
.. (image generated)
..
image.Save(Response.OutputStream, ystem.Drawing.Imaging.ImageFormat.Jpeg);
This all works fine except for one small problem. If the user right clicks
on the image, the file is saved with the .html extension and not .jpg. If
the extension is manually changed then the image will load correctly into an
image viewer, indicating that it is only the filename that is incorrect.
Can anyone suggest a solution so that 'save picture as' appends the correct
file extension.
Regards,
Dave.
Hi,
I'm using VS2005 to create a web site.
On one of my aspx pages I have an ImageButton that displays an image that is
created in a seperate page.
ImageButton1.ImageUrl = "EmbeddedPage.aspx";
The EmbeddedPage.aspx generates the image to be displayed and returns the
image thus:
Bitmap image;
..
.. (image generated)
..
image.Save(Response.OutputStream, ystem.Drawing.Imaging.ImageFormat.Jpeg);
This all works fine except for one small problem. If the user right clicks
on the image, the file is saved with the .html extension and not .jpg. If
the extension is manually changed then the image will load correctly into an
image viewer, indicating that it is only the filename that is incorrect.
Can anyone suggest a solution so that 'save picture as' appends the correct
file extension.
Regards,
Dave.