Skip to main content

Questions tagged [download]

Receiving data to a local system from a remote system, or to initiate such a data transfer. Do not use this tag for question asking where to download off-site resource.

1132 votes
17 answers
631k views

Download a file with Android, and showing the progress in a ProgressDialog

I am trying to write a simple application that gets updated. For this I need a simple function that can download a file and show the current progress in a ProgressDialog. I know how to do the ...
Tom Leese's user avatar
  • 19.6k
1074 votes
15 answers
877k views

How do I measure request and response times at once using cURL?

I have a web service that receives data in JSON format, processes the data, and then returns the result to the requester. I want to measure the request, response, and total time using cURL. My ...
sdasdadas's user avatar
  • 24.7k
909 votes
38 answers
1.6m views

Download single files from GitHub

What are some tips on downloading a single file from a GitHub repo? I don't want the URL for displaying the raw file; in the case of binaries, there's nothing. http://support.github.com/discussions/...
Radek Simko's user avatar
870 votes
6 answers
965k views

How to change filename of a file downloaded with wget?

I am downloading a file from www.examplesite.com/textfile.txt When running the following command wget www.examplesite.com/textfile.txt the file is saved as textfile. How can I save it as newfile.txt?
noobcoder's user avatar
  • 12.5k
690 votes
25 answers
1.8m views

How to trigger a file download when clicking an HTML button or JavaScript

This is crazy but I don't know how to do this, and because of how common the words are, it's hard to find what I need on search engines. I'm thinking this should be an easy one to answer. I want a ...
brentonstrine's user avatar
668 votes
33 answers
894k views

How to download a file with Node.js (without using third-party libraries)?

How do I download a file with Node.js without using third-party libraries? I don't need anything special. I only want to download a file from a given URL, and then save it to a given directory.
greepow's user avatar
  • 7,203
634 votes
2 answers
1.0m views

Do I need Content-Type: application/octet-stream for file download?

The HTTP standard says: If this header [Content-Disposition: attachment] is used in a response with the application/octet-stream content-type, the implied suggestion is that the user agent ...
Paul Draper's user avatar
  • 81.7k
626 votes
9 answers
641k views

Download large file in python with requests

Requests is a really nice library. I'd like to use it for downloading big files (>1GB). The problem is it's not possible to keep whole file in memory; I need to read it in chunks. And this is a ...
Roman Podlinov's user avatar
499 votes
26 answers
1.0m views

Download a file by jQuery.Ajax

I have a Struts2 action in the server side for file downloading. <action name="download" class="com.xxx.DownAction"> <result name="success" type="stream"> <param name="...
hguser's user avatar
  • 35.7k
484 votes
33 answers
1.8m views

Download File Using JavaScript/jQuery

I have a very similar requirement specified here. I need to have the user's browser start a download manually when $('a#someID').click(); But I cannot use the window.href method, since it replaces ...
Mithun Sreedharan's user avatar
476 votes
24 answers
761k views

How can I download and save a file from the Internet using Java?

There is an online file (such as http://www.example.com/information.asp) I need to grab and save to a directory. I know there are several methods for grabbing and reading online files (URLs) line-by-...
echoblaze's user avatar
  • 11.5k
458 votes
16 answers
610k views

Downloading a file from spring controllers

I have a requirement where I need to download a PDF from the website. The PDF needs to be generated within the code, which I thought would be a combination of a freemarker and a PDF generation ...
MilindaD's user avatar
  • 7,643
456 votes
7 answers
650k views

Download a file from NodeJS Server using Express

How can I download a file that is in my server to my machine accessing a page in a nodeJS server? I'm using the ExpressJS and I've been trying this: app.get('/download', function(req, res){ var ...
Thiago Miranda de Oliveira's user avatar
385 votes
12 answers
710k views

Download File to server from URL

Well, this one seems quite simple, and it is. All you have to do to download a file to your server is: file_put_contents("Tmpfile.zip", file_get_contents("http://someurl/file.zip")); Only there is ...
xaav's user avatar
  • 7,906
370 votes
18 answers
495k views

Using HTML5/JavaScript to generate and save a file

I've been fiddling with WebGL lately, and have gotten a Collada reader working. Problem is it's pretty slow (Collada is a very verbose format), so I'm going to start converting files to a easier to ...
Toji's user avatar
  • 34.3k

15 30 50 per page
1
2 3 4 5
1235