我用asp.net作图
bm.Save(Response.OutputStream, ImageFormat.Jpeg),bm是Bitmap实例
,在IE下面是好的,但在FireFox中是一堆乱码,怎么处理

解决方案 »

  1.   

    可以参考一下这
    http://blog.zxbc.cn/7043/viewspace-4032.html
      

  2.   


                System.IO.MemoryStream MStream = new System.IO.MemoryStream();
                bm.Save(MStream, System.Drawing.Imaging.ImageFormat.Gif);
                Response.ClearContent();
                Response.ContentType = "image/Gif";
                Response.BinaryWrite(MStream.ToArray());
      

  3.   

    要有这句: context.Response.ContentType = "Image/jpeg"