This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can dispaly the pics that are not included in the program folder.

 
zhong jin
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
e.g the program put in the dir"C:\Program Files\Apache Tomcat 4.0\webapps\ROOT",and there is a pic "logo.gif" in d:\images\. now ,how can i show the pic "logo.gif" on the brower to client.
 
Cory Wilkerson
Ranch Hand
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Move the image .
Actually, you'll either have to write the image into the response's output stream (response.getOutputStream()) via some server side code or expose it to the web and just path to it. If you go with the response stream route, your code is going to have to know about the path to logo.gif via a property specified at runtime or you could hardcode the thing into your code (boo). All that said -- look into moving it into your webapp.
[ December 30, 2002: Message edited by: Cory Wilkerson ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic