Downloading File in Segments in Java Using Socket,URL and IO
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, December 5, 2002 03:16 AM

Hello Friends,

Can any one guide how to download file in Segments using java io or net [Socket and URL].

Re: Downloading File in Segments in Java Using Socket,URL and IO

Posted By:   Gautam_Marwaha  
Posted On:   Thursday, December 5, 2002 04:36 AM

Given you have the file URL, obtain the InputStream using URL.openStream(), read bytes of the file from the InputStream and write to a FileOutputStream to get a physical file. Read Java Tutorial http://java.sun.com/docs/books/tutorial/networking/urls/readingURL.html , http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html
About | Sitemap | Contact