//获取目标页面内容
System.Net.WebClient wb = new System.Net.WebClient();
byte[] b = wb.DownloadData(queryUrl);
获取文件类型
string type = wb.ResponseHeaders["Content-Type"];
//转换成string 类型数据
string str = System.Text.Encoding.Default.GetString(b);
//写string入流
Response.Write(str);
//写byte入流
Response.BinaryWrite(b);