string pathName=@"D:\VS 2008\LotterySystem\Space\images\StandLevel\soldier1.jpg";
   FileStream fs = new FileStream(pathName, System.IO.FileMode.Open, System.IO.FileAccess.Read);
   byte[] imgByte2=new byte[fs.Length];
   fs.Read(imgByte2, 0, (int)fs.Length);
   fs.Close();
   Object o=imgByte2;
   byte[] imgByte=(byte[])o;
   Response.ClearContent();
   Response.ContentType = "image/Jpeg";
   Response.OutputStream.Write(imgByte,0,imgByte.Length); 

相关文章:

  • 2022-12-23
  • 2021-11-21
  • 2021-11-09
  • 2021-11-30
  • 2021-10-22
  • 2021-06-11
  • 2021-07-11
  • 2021-08-10
猜你喜欢
  • 2022-01-08
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-01-01
相关资源
相似解决方案