This commit is contained in:
28
source/WBI/AyaImage.ashx
Normal file
28
source/WBI/AyaImage.ashx
Normal file
@@ -0,0 +1,28 @@
|
||||
<%@ WebHandler Language="C#" Class="AyaImage" %>
|
||||
|
||||
using System;
|
||||
using System.Web;
|
||||
|
||||
public class AyaImage : IHttpHandler, System.Web.SessionState.IReadOnlySessionState
|
||||
{
|
||||
|
||||
public void ProcessRequest (HttpContext context) {
|
||||
|
||||
string idstring = context.Request.QueryString["id"];
|
||||
Guid oID = Guid.Empty;
|
||||
if (!string.IsNullOrEmpty(idstring))
|
||||
oID = new Guid(idstring);
|
||||
|
||||
Util.WriteAyaImageToResponse(context.Response, oID);
|
||||
|
||||
// context.Response.ContentType = "text/plain";
|
||||
//context.Response.Write("Hello World");
|
||||
}
|
||||
|
||||
public bool IsReusable {
|
||||
get {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user