我要创造我自己的动态横幅动态横幅,于是我开始制作图片处理程序,ATM我有这样的代码:创建图像处理程序
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Faeria
{
/// <summary>
/// Summary description for FaeriaImage
/// </summary>
public class FaeriaImage : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "image/jpeg";
context.Response.Write("~/Images/bg1.jpg");
}
public bool IsReusable
{
get
{
return false;
}
}
}
}
但是当我打电话“ http:// localhost:12361/FaeriaImage.ashx“我只得到这个:http://abload.de/image.php?img=1deib0.jpg。
当我在我的网站中调用它时,我没有任何图像。
这是什么错误?