Author: johnhrschuster | Posted on: 2/14/2009 2:00:50 PM | Views : 316

I have gotten some advice on this "Simple" method to load a SQL Server 2005 Image column to a ASP:Image control on a web form.  The code come from as many as 15 different postings and forums.  Maybe that's the problem  ;-)

I'm still amazed that there isn't a control in VS2005 to simply bind an Image column in SQL Server to an ASP:Image control and that we have to revert back to http handler, binary arrays and memory streams.  When I run this code I don't get any image in the ASP:Image however I can see the image when I create a MSAccess form with an image control on it.

When I run the code in debug mode all the lines of code get run with no error including the (BinaryWrite)

I think I'm close, but that only counts in horseshoes....   Thank you to anyone who can provide some insight.

------ HTTP Handler --------------------------------------------------------------------------------

Imp ...

Go to the complete details ...