• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Very argent file path

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check this thread
 
Seriously? That's what you're going with? I prefer this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic