Skip to main content

tar.gz

1 reply [Last post]
cojones_grandes
Offline
Joined: 2007-06-11
Points: 0

Does anybody know how to copy/download a tar.gz file from the web?
Am I to use a common FileInputStream?

THX for helping

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
klopperq
Offline
Joined: 2005-09-23
Points: 0

Hi

You would use the InputStream that the connection to the URL provides.....

URL url = new URL("http://www.theurl.com/thefile.zip");
URLConnection con = url.openConnection();
InputStream in = con.getInputStream();