Skip to content

Instantly share code, notes, and snippets.

@smaspe
Created June 10, 2013 09:37
Show Gist options
  • Save smaspe/5747574 to your computer and use it in GitHub Desktop.
Save smaspe/5747574 to your computer and use it in GitHub Desktop.
File download 1-liner
new DefaultHttpClient().execute(new HttpGet("http://www.example.com/somefile.ext"))
.getEntity().writeTo(
new FileOutputStream(new File(root,"Video.mp4")));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment