Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2006

Tip: Looking for answers? Try searching our database.

How -Remote File downloading through Java programmng

Thread view: 
hnmapara@yahoo.co.in - 02 Apr 2006 08:16 GMT
Dear friends,
I'm making download manager in J2SE.
If my pc is in LAN n this software is installed on that, then how to
download any file from the server ..?
Which are the classes n methods available to that..? How we can donload
files from server identified by IP.

in java URL class is there which establishes connection with webserver,
but
it deals with DOMAIN name ,not IP address.
How to deal with IP address?

Thanks in advance.
Harshit Mapara
James McGill - 02 Apr 2006 16:34 GMT
> Dear friends,
> I'm making download manager in J2SE.
> If my pc is in LAN n this software is installed on that, then how to
> download any file from the server ..?
> Which are the classes n methods available to that..? How we can donload
> files from server identified by IP.

Jakarta Commons has an excellent HTTPClient implementation.  
http://jakarta.apache.org/commons/httpclient/

As for "dealing with IP addresses" instead of Domain names, maybe
someone else will explain that relationship to you.
Oliver Wong - 15 Apr 2006 17:05 GMT
>> Dear friends,
>> I'm making download manager in J2SE.
[quoted text clipped - 8 lines]
> As for "dealing with IP addresses" instead of Domain names, maybe
> someone else will explain that relationship to you.

Using http://www.google.com/ and http://72.14.203.104/ should yield similar
results for most intents and purposes.

   - Oliver


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.