- download file to a specific location with Response.BinaryWrite and Server.Mappath possible?
- //a is my attachment object
- var r = context.Response;
- r.AddHeader("Content-Disposition", "attachment; filename=" + a.FileName);
- r.Charset = "";
- r.ContentType = a.MIME;
- r.BinaryWrite(a.Content.ToArray());