This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Image problem for Jboss5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Image problem for Jboss5" Watch "Image problem for Jboss5" New topic
Author

Image problem for Jboss5

vinny kumar
Greenhorn

Joined: Jan 20, 2011
Posts: 7

Dear all ,


How to send Images threw InputStream and Datahandler using Jboss5


Thanks& Regards
Vinaya Kumar
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5811
    
    7

In your servlet you need to change the mime type to the proper type for your image. For example, for a PNG you would use:

response.setContentType("image/png")

where response is a javax.servlet.http.HttpServlteResponse (one of the parameters to doPost(), doGet() etc.)
You can find a partial list of mime types in ./server/default/deployers/jbossweb.deployer/web.xml (AS 5.1.0 location)


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Image problem for Jboss5
 
Similar Threads
HTTP Status 405 - HTTP method POST is not supported by this URL.
Change JBoss Port No
Cannot use EJB3 in Netbeans 5.5.1 & 6.0.1
unable to start JBoss5 server through eclipse 3.4.1
JSF project error in Jboss Developer Studio