This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JSP and the fly likes Mime type in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Mime type in JSP" Watch "Mime type in JSP" New topic

Mime type in JSP

tripti pandey

Joined: Mar 09, 2006
Posts: 5
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.
I agree. Here's the link:
subject: Mime type in JSP
jQuery in Action, 3rd edition