Bitmap Save dialog
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all, I am generating an image on the fly and I am trying to prompt the user to save this image on their drive. Response.ContentType = "image/gif"; bmp.Save("C:\\signature.bmp", ImageFormat.Bmp); Response.Clear(); Response.AppendHeader("Content-Disposition", "attachment; filename=signature.gif"); Response.ContentType = "image/gif"; Response.Write(bmp.ToString()); Response.End(); bmp.Dispose(); the dialog pops open but when I save the file it generates a file but its no the image its an empty object. How do I prompt the user the save dialog for this bitmap? any ideas?? thanks