I tried something like : Response.ClearContent(); Response.ClearHeaders(); Response.Expires=-1; Response.Buffer=true; Response.ContentType="application/mspaint"; Response.AddHeader("Content-Disposition", "attachment;filename=abc.jpeg"); Response.AppendHeader("Content-Transfer-Encoding",
"binary"); Response.BinaryWrite( (Byte[])Session["PicDataFullImageView"]); Response.Flush(); Response.End(); but it is not opening in mspaint.. By the way do you know how upload a file without using <input type=file>??.. I know there is a method in System.Net.WebClient
called UploadFile but i am trying to figure out how to upload it.
greatb78
Member
365 Points
73 Posts
Re: Pushing a download to the browser
Feb 08, 2004 05:45 AM|LINK