我有一个自定义处理程序(ImageHandler.ashx),在浏览时可以正常工作。它在服务器上找到一个zip文件,解压缩并将位图保存到OutputStream中。当我尝试使用ashx使用jQuery加载时,我的png内容会以编码,乱码字符的形式返回,而不是显示图像。使用jQuery加载自定义http处理程序ashx文件来显示png
Bitmap convertedImg = new Bitmap(zInStream);
convertedImg.Save(context.Response.OutputStream, ImageFormat.Png);
向我们展示您的jQuery代码 – andynormancx 2011-04-18 17:17:47