I am facing following problem. I have a image as byte array that i need to display as image, following is the code i wrote in custom tag for the same :
OutputStream o = response.getOutputStream();
o.write(byteImage);
o.flush();
o.close();
In the
JSP i am using following code
<img src="displayImage.jsp">
and this displayImage.jsp finally calls the custom tag. However, it seems that img tag is not accepting jsp. My debugger never reaches inside the custom tag implementation.
Also, i have set the MIME-type as "image/jpeg" as required.
Please help