我的上传文件是一二进制流存在数据库中的,现在我要做下载,点下载的时候谈框框改怎么写的啊。我这样写 图片文件就不谈框框直接在线看了:
string fileName = AnnexModel.ANNEXNAME;//防止文件名乱码
Response.Clear();
Response.AppendHeader("Content-disposition:", "inline; filename=" + fileName);
Response.ContentType = AnnexModel.TYPE;
Response.ContentType = "application/octet-stream";
Response.OutputStream.Write(AnnexModel.ANNEX, 0, AnnexModel.ANNEXSIZE);
Response.End();