Author: StefanPienaar | Posted on: 7/28/2008 10:44:20 AM | Views : 221

Hi, I'm using a handler to serve Images (which path is read from my database). That all seems to be working pretty well especially since it dynamically generated thumbnails for the images.

This is basically a breakdown of what happens in my ProcessRequest Event:

string path = Request.MapPath("gallery/" + context.Request["path"]);

Bitmap img = new Bitmap(path);

Response.ContentType = "image/Jpeg";

img.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);

Thats all fine and well, but on one of my pages, I'm displ ...

Go to the complete details ...