This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes get file path  from url ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "get file path  from url ?" Watch "get file path  from url ?" New topic
Author

get file path from url ?

Miran Cvenkel
Ranch Hand

Joined: Nov 23, 2010
Posts: 138


after redirections in behind ... url.openConnection... opens the following file:



How to get that path from url ?


Searchable nature photo gallery: http://agrozoo.net/jsp/Galery.jsp?l2=en
Miran Cvenkel
Ranch Hand

Joined: Nov 23, 2010
Posts: 138
the answer to this is casting urlConnection as HttpURLConnection

something like this:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: get file path from url ?
 
Similar Threads
Downloading a file
save image file from remote URL
Download content from URL + POST parameters
Communicate with the server without a browser.
URLConnection time constraint