This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Downloading content using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Downloading content using java" Watch "Downloading content using java" New topic

Downloading content using java

shukla raghav
Ranch Hand

Joined: Aug 03, 2008
Posts: 200
In case if we have to download content onto our system is it required the content can only downloaded from an FTP server. can we not download the content from a webserver. where do we place the data such as PDFs or Images or videos to be downloaded.

Can you please provide a simple code for downloading content specially images.
James Ward
Ranch Hand

Joined: Apr 27, 2003
Posts: 263
Ofcourse you can place files inside a web-application dir on server and download it using a java program. The java program will make a http request to download that particular resource i.e file.

You can look at Apache HTTP Client library, which is meant for making http requests.
shukla raghav
Ranch Hand

Joined: Aug 03, 2008
Posts: 200
thank you
I agree. Here's the link:
subject: Downloading content using java
Similar Threads
cable internet
Close Popupwindow
Java Job Interview Question
Is this possible...?
Refreshing of ImageIcon/JLabel