1 #region 把图片Copy到输出流
 2             //获得图片全路径
 3             string path = context.Server.MapPath("~/img/158_003.jpg");
 4             //把图片写入流
 5             using (Stream stream = File.OpenRead(path))
 6             {
 7                 //把流Copy输出流
 8                 stream.CopyTo(context.Response.OutputStream);
 9             } 
10             #endregion
把图片Copy到输出流

相关文章: