62,041
社区成员
发帖
与我相关
我的任务
分享
HttpContext.Current.Response.ClearContent();
HttpContext.Current.Response.ContentType = "image/jpg";
Stream st = RequestHelper.GetResponseImage(imageUlr);
//=new System.IO.MemoryStream (
int count = 0;
while (st.ReadByte() != -1)
{
count++;
}
byte[] b = new byte[count];
st.Read(b, 0, count);
// b = StreamToBytes(ms);
//ms.Read(b, 0,);
HttpContext.Current.Response.BinaryWrite(b);