Hi Iam generating an image using Response.Write in a web page, I want to save the image generated in a folder, help me doing it please.
Response.Write("<img src='image/Black.gif'>")
You mean you want user to download the file?
Private Sub DownloadFile() Response.ContentType = ContentType Response.AppendHeader("Content-Disposition", "attachment; filename=Black.gif") Response.WriteFile(Server.MapPath("~/image/Black.gif")) Response.Flush() Response.End() End Sub
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.