T
Tem
I need to write a custom handler when the handler is accessed, it returns
the photo in jpg with 2 lines on the bottom of the image.
lower left "Taken by"
lower right "January 2 2008"
This is what I have so far...
public class certificate : IHttpHandler {
public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "image/jpeg";
context.Response.Cache.SetCacheability(HttpCacheability.NoCache);
context.Response.BufferOutput = false;
context.Response.WriteFile("/photos/1.jpg");
}
public bool IsReusable {
get {
return false;
}
}
}
Your help is greatly appreciated,
Tem
the photo in jpg with 2 lines on the bottom of the image.
lower left "Taken by"
lower right "January 2 2008"
This is what I have so far...
public class certificate : IHttpHandler {
public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "image/jpeg";
context.Response.Cache.SetCacheability(HttpCacheability.NoCache);
context.Response.BufferOutput = false;
context.Response.WriteFile("/photos/1.jpg");
}
public bool IsReusable {
get {
return false;
}
}
}
Your help is greatly appreciated,
Tem