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.

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
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
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
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
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
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 ...
zmeda's user avatar
  • 2,909
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....
john's user avatar
  • 1,527
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 ...
Nick Albrecht's user avatar
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: &...
Manuel Di Iorio's user avatar
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], {...
Ash Blue's user avatar
  • 5,512
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
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
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
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

15 30 50 per page
1
2 3 4 5
156