Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<img src="RenderImage.ashx?id=1234" />
public class RenderImage : IHttpHandler
{
public bool IsReusable{get{return true;}}
public void ProcessRequest(HttpContext context)
{
var id = int.Parse(context.Request.QueryString["id"]);
byte[] image = GetImageFromDatabase(id);
context.Response.BinaryWrite(image);
context.Response.ContentType = "image/jpg";
}
private static byte[] GetImageFromDatabase(int id)
{
typical ado.net code.
}
}