aspose file tools*
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
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: 477

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: 36486
    
  16
With the appropriate method in the java.io.File class.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

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
Open HTML file in desktop app
hyperlink in a servelt
store a file in the server
The abstract path of IO
store a file in tomcat server