aspose file tools
The moose likes JBoss and the fly likes Image problem for Jboss5 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply 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: 5536

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Image problem for Jboss5
 
Similar Threads
Cannot use EJB3 in Netbeans 5.5.1 & 6.0.1
HTTP Status 405 - HTTP method POST is not supported by this URL.
JSF project error in Jboss Developer Studio
unable to start JBoss5 server through eclipse 3.4.1
Change JBoss Port No