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.
download
2,328
questions
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="...
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 ...
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 ...
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-...
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 ...
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 ...
96
votes
5
answers
167k
views
How to provide a file download from a JSF backing bean?
Is there any way of providing a file download from a JSF backing bean action method?
I have tried a lot of things. Main problem is that I cannot figure how to get the OutputStream of the response in ...
150
votes
12
answers
600k
views
How to force file download with PHP
I want to require a file to be downloaded upon the user visiting a web page with PHP. I think it has something to do with file_get_contents, but am not sure how to execute it.
$url = "http://example....
340
votes
9
answers
498k
views
Returning a file to View/Download in ASP.NET MVC
I'm encountering a problem sending files stored in a database back to the user in ASP.NET MVC. What I want is a view listing two links, one to view the file and let the mimetype sent to the browser ...
118
votes
14
answers
414k
views
download file using an ajax request
I want to send an "ajax download request" when I click on a button, so I tried in this way:
javascript:
var xhr = new XMLHttpRequest();
xhr.open("GET", "download.php");
xhr.send();
download.php:
&...
313
votes
10
answers
600k
views
JavaScript blob filename without link
How do you set the name of a blob file in JavaScript when force downloading it through window.location?
function newFile(data) {
var json = JSON.stringify(data);
var blob = new Blob([json], {...
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 ...
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.
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 ...
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 ...