Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Very argent file path

 
Sameera Abeysinghe
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have this site that save images to the server. To do this I use some thing close to
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(n));
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
Where n is the full path (the absolute path or the path of the file on the hard disk) of the file
Ex:-
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT\test\videos\anjana

Now what I want to know is how I can find out this path
If I have my file in
http://192.168.101.9:8080/test/chatLogin.jsp
What I want is the path of this chatLogin.jsp file in the hard disc.

I need some program that can get me this path

With refereeing to chatLodin.jsp file the I need some program (a JSP file or an a Servlet) that will give the following result
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT\test\chatLogin.jsp

Thank You

Sameera Abeysinghe
 
Vishnu Prakash
Ranch Hand
Posts: 1026
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic