public void ProcessRequest(HttpContext context) { int movieID = Convert.ToInt32(context.Request.QueryString["MovieID"]); MovieServices MovieServices = new MovieServices(); byte[] photo = MovieServices.GetPhoto(movieID); if (photo == null) { return; } context.Response.ContentType = "image/jpeg"; context.Response.BinaryWrite(photo); }