Bind images to GridView from database without using handler or httphandler

have read many article and most of the article suggest httphandler or handler for image binding to gridview from SQL Server.

Is it possible to bind images from database to gridview without httphandler or handler?. If yes than provide me sample code

My table schema: Table Name:- ImageGallery

Column Name     DataTypes

Photo           image


 The above table stored the images in <Binary data>

Answers


Is it possible? Yes. Is it a good idea? Not at all, and here's why. An HttpHandler is a way of providing a virtual URL for the image. This allows the browser to handle the GET requests on its own, in an order that's efficient, and asynchronously. This further means that the initial GET request isn't burdened down with conceivably MB's of images.

The idea of a website is that it's more efficient to make a lot of smaller requests asynchronously than it is to make one massive request. Why? Because you're already at a disadvantage to provide the user with a good experience when disconnected from the server. Adding insult to that injury by making a massive request that could take minutes, isn't going to add to their joy.


Need Your Help

JDBC connection to SQL Server 2005 Instance running on remote machine

java sql-server-2005 jdbc spring-jdbc

Iam trying to connect to sql server 2005 instance running on a remote machine from my spring web application. This web application is running in tomcat server. Earlier When I connected to sql server

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.