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 Java in General and the fly likes file path to url 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 » Java » Java in General
Bookmark "file path to url" Watch "file path to url" New topic
Author

file path to url

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

Hi i wanna change a normal file path to url format . for instance file path: c:\MyFolder\Myfile.txt i wanna change this path to URL so how i can do that ?


Thanks,
Sherif
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37907
    
  22
With the appropriate method in the java.io.File class.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

And once you've found that one, notice it is deprecated and read what you should use instead. It's all in the API


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: file path to url
 
Similar Threads
store a file in tomcat server
store a file in the server
The abstract path of IO
Open HTML file in desktop app
hyperlink in a servelt