Does anybody know how to copy/download a tar.gz file from the web?
Am I to use a common FileInputStream?
THX for helping
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();
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.