求:ashx 输出下载文件 type为application/octet-stream flash能直接播放?
输出代码
context.Response.ContentType = "application/octet-stream"; context.Response.AddHeader("Content-Disposition", "attachment;FileName=" + System.Web.HttpUtility.UrlEncode(fileName)); context.Response.BinaryWrite(bytes);