File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC 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: 203
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: 203
thank you
I agree. Here's the link:
subject: Downloading content using java
It's not a secret anymore!