//upload the image FileUpload1.SaveAs(Server.MapPath("~/temp/") + FileUpload1.FileName) //coading to process on uploaded image //download file Me.Response.AddHeader("content-disposition", String.Format("attachment;filename={0}", Path.GetFileName(FileUpload1.FileName))) Me.Response.ContentType = "image/jpg" Me.Response.WriteFile(Server.MapPath("~/temp/") + FileUpload1.FileName) // delete the file from temp File.Delete(Server.MapPath("~/temp/") + FileUpload1.FileName)
Response.Flush(); System.IO.File.Delete(fullPathFileName); Response.[End]();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)