/// <summary>
        /// Enables processing of HTTP Web requests by a custom HttpHandler that implements the <see cref="T:System.Web.IHttpHandler"/> interface.
        /// </summary>
        /// <param name="context">An <see cref="T:System.Web.HttpContext"/> object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.</param>
        public void ProcessRequest(HttpContext context)
        {
            PhotoHandlerHelper helper = new PhotoHandlerHelper(new PhotoLogic().RetrieveAdminThumbnail, new PhotoLogic().RetrieveAdminImage);

            byte[] image = helper.RetrieveImage(context);

            context.Response.ContentType = "image/jpg";
            context.Response.BinaryWrite(image);
        }
Beispiel #2
0
        /// <summary>
        /// Enables processing of HTTP Web requests by a custom HttpHandler that implements the <see cref="T:System.Web.IHttpHandler"/> interface.
        /// </summary>
        /// <param name="context">An <see cref="T:System.Web.HttpContext"/> object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.</param>
        public void ProcessRequest(HttpContext context)
        {
            PhotoHandlerHelper helper = new PhotoHandlerHelper(new PhotoLogic().RetrieveAdminThumbnail, new PhotoLogic().RetrieveAdminImage);

            byte[] image = helper.RetrieveImage(context);

            context.Response.ContentType = "image/jpg";
            context.Response.BinaryWrite(image);
        }