日期:2014-05-18 浏览次数:20632 次
Response.ContentType = "application/octet-stream"; Response.AddHeader("Content-Disposition", "attachment;filename=附件名"); //获取二进制数据 Byte[] docBinary = 从数据库动态取出二进制流; Response.OutputStream.Write(docBinary, 0, docBinary.Length); Response.End();
try { webBrowser.Url = new Uri(strUrl + "&time=" + DateTime.Now); } catch (Exception ex) { LogUtil.WriteLog(ex); }