This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
i am trying to display a image obtained in byte array through jsp. Following is the code that i am using : <% response.setContentType("image/jpeg"); OutputStream o=response.getOutputStream(); byte byteImage; byteImage = request.getParameter("byteImage"); o.write(byteImage); o.flush(); o.close(); %>
This code works perfectly fine and i am able to see the jpeg image, however problem arises when i putting this jsp in tile-def.xml. Byte dump is being displayed in this case instead of image. Please help what the problem can be.