期待
A.aspx
FileStream fs = new FileStream("c:/xx.gif", FileMode.Open);
byte[] byData = new byte[fs.Length];
fs.Read(byData, 0, byData.Length);
fs.Close();
Response.ClearContent();
Response.ContentType = "image/Jpeg";
Response.OutputStream.Write(byData, 0, byData.Length); //byData二进制数据
Response.End();
B.aspx
<img src="A.aspx" />
你可以先将二进制转化成文件,然后输出