Displaying images on JSP using out.write(byte[])
Hi Friends
I have a requirement to show multiple images on a jsp in tabular form. Now these images are coming from database in form of byte[].
In my jsp im writing :
<%
OutputStream os = response.getOutputStream();
ArrayList images=(ArrayList)exp_Man.getImagesList(line_Id);
for(int i=0;i<images.size();i++){
%>
<tr><td>
<%
byte[] image=(byte[])images.get(i);
os.write(image);
os.flush();
%>
</td></tr>
<%
}
%>
The above code gives error that response.getOutputStream() is alreay open for this response. Am I doing something wronge, i dont know.
If im doing some mistake, ols do tell me.
Thanks in advance.

