Implement your own IHttpHandler, and write the image directly to the Response Stream. Implement your caching if needs be. ________________________________ From: [email protected] [[email protected]] on behalf of Greg Keogh [[email protected]] Sent: Wednesday, March 03, 2010 10:15 PM To: 'ozDotNet' Subject: ASP.NET dynamic images
Back to hard reality ... Does anyone here have a preferred way of putting dynamically generated images into an ASP.NET page? I have images as byte[] SQL Server table column which are to be shown in a page. The kiddie way would be to save them as gif files to some temporary folder and generate the <IMG> tag to point to it. But I’m sure there’s a slicker way of somehow putting the image directly into the response stream. I’ve never needed to do this before. I remember reading years ago about the DynamicImage control created for this purpose, but I just discovered it was pulled from release long ago (funny I can still remember it). Maybe someone’s written a clever server-side control that creates dynamic images. I’m looking for something like that now. Greg
