Get Image From Database Value.
<%
EmployeeDao ee=new EmployeeDao();
List list=ee.View();
Iterator<Employee> itr=list.iterator();
%>
<center>
<table style="width:100px;" border="2">
<th>EMP_NAME</th>
<th>EMP_NATION</th><th>EMP_ADDRESS</th><th>EMP_MOBILE</th><th>EMP_MAILID</th>
<th>EMP-CONTRACT-TYPE</th><th>EMP-JOIN-DATE</th><th>COMPLETION-DATE</th><th>PHOTO</th><th>DELETE</th><th>UPDATE</th>
<%
while(itr.hasNext())
{
Employee e=itr.next();
%>
<tr>
<td><%=e.getName()%></td>
<td><%=e.getNation()%></td>
<td><%=e.getAddress()%></td>
<td><%=e.getMobile()%></td>
<td><%=e.getMailid()%></td>
<td><%=e.getContract()%></td>
<td><%= e.getJoindate()%></td>
<td><%=e.getComdate()%></td>
<td><img src="${pageContext.request.contextPath}/upload/<%=e.getPhoto()%>" width='100px' height='100px'/></td>
<td><a href="delete?id=<%=e.getId()%>"><img src="css/metro/delete.png"></a></td>
<td><a href="update.jsp?id=<%=e.getId()%>"><img src="css/metro/edit.png"></a></td>
</tr>
<%
}
%>
EmployeeDao ee=new EmployeeDao();
List list=ee.View();
Iterator<Employee> itr=list.iterator();
%>
<center>
<table style="width:100px;" border="2">
<th>EMP_NAME</th>
<th>EMP_NATION</th><th>EMP_ADDRESS</th><th>EMP_MOBILE</th><th>EMP_MAILID</th>
<th>EMP-CONTRACT-TYPE</th><th>EMP-JOIN-DATE</th><th>COMPLETION-DATE</th><th>PHOTO</th><th>DELETE</th><th>UPDATE</th>
<%
while(itr.hasNext())
{
Employee e=itr.next();
%>
<tr>
<td><%=e.getName()%></td>
<td><%=e.getNation()%></td>
<td><%=e.getAddress()%></td>
<td><%=e.getMobile()%></td>
<td><%=e.getMailid()%></td>
<td><%=e.getContract()%></td>
<td><%= e.getJoindate()%></td>
<td><%=e.getComdate()%></td>
<td><img src="${pageContext.request.contextPath}/upload/<%=e.getPhoto()%>" width='100px' height='100px'/></td>
<td><a href="delete?id=<%=e.getId()%>"><img src="css/metro/delete.png"></a></td>
<td><a href="update.jsp?id=<%=e.getId()%>"><img src="css/metro/edit.png"></a></td>
</tr>
<%
}
%>