I managed to answer my own question. The stripped down asmx method is:
public void DownloadContent(string fname, string content)
{
var response = Context.Response;
response.Clear();
response.Charset = "UTF-8";
response.ContentType = "application/octet-stream";
response.AppendHeader("Content-Disposition", "attachment; filename=" + fname);
byte[] bytes = Convert.FromBase64String(content);
response.OutputStream.Write(bytes, 0, bytes.Length);
response.Flush();
}
-
This reply was modified 8 years, 5 months ago by toquehead.