我要創造我自己的動態橫幅動態橫幅,於是我開始製作圖片處理程序,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。
當我在我的網站中調用它時,我沒有任何圖像。
這是什麼錯誤?