This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mime type in JSP  RSS feed

Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to display a image obtained in byte array through jsp. Following is the code that i am using :
OutputStream o=response.getOutputStream();
byte[] byteImage;
byteImage = request.getParameter("byteImage");

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.
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
ScroogeXHTML 7.2 - RTF to HTML5 / XHTML converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!