• Post Reply Bookmark Topic Watch Topic
  • New Topic

Downloading Specific Files  RSS feed

 
Sam Benry
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lets say I have a link www.link.com/sublink/01.mp3
so I want to make a program that downloads that and saves it on my desktop.
Where can I find basic guides to download files from the internet using java?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A library like HttpClient makes programmatic access to HTTP resources pretty easy.
 
Rob Spoor
Sheriff
Posts: 21131
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
URL in combination with URLConnection is a bit easier but less powerful.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course there is also wget and web browsers that already do this for you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!