file-download

Large File Download - Connection With Server Reset

I have an asp.net website that allows the user to download largish files - 30mb to about 60mb. Sometimes the download works fine but often it fails at some varying point before the download finishes with the message saying that the connection with the server was reset. Originally I was simply using Server.TransmitFile but after reading...

[ASP.NET] File download does not work with IE7

I have an asp.net page which sends content of a file to the client, so the browser shows the save as dialog to download the file. This page is displayed in a popup and when the user clicks the save button, it closes automatically and the download starts. On windows server 2003, it works fine. On vista with other browsers, also works fin...

Large file download in background, initiated from the browser

Is there any reasonable method to allow users of a webapp to download large files? I'm looking for something other than the browser's built-in download dialog - the requirements are that the user initiates the download from the browser and then some other application takes over, downloads the file in background and doesn't exit when the ...

WebClient.DownloadFileAsync: With many file downloads

Hello, I am using multiple instances of the WebClient class in order to download many small files at the same time asynchronously from a web server on the internet. The URI i'm using has it's IP in number notation to avoid unnecessary DNS resolutions. I am pushing it a bit, using e.g. 50+ instances of the class at the same time. What I...

Make available as download with JavaScript

I create a file in JavaScript. Now I want to be able to make it available to the user as a download is this possible? To be exact it is a KML File I create so its basic XML. ...

silverlight...hyperlinkbutton to file using relative path

I am trying to use a hyperlinkbutton in silverlight to enable the user to download a word document. I don't care if a file save as box appears or if the word doc opens in a new browser. I get the error "cannot navigate to locations relative to a page." I've seen it posted that you can do this with the absolute path (www.domain.com/fil...

Hyperlink works - Html Form with a Submit button doesn't

I have a PHP script that pushes the headers to allow a file to download. This script works fine when it called via a hyperlink or through the browser using link. This is how it looks like: <a href="download.php?file=test.mp3&properFilename=Testing File">Download</a> I want this to be a button (sbumit) instead, so I did this: <form ac...

How to block downloads in .NET WebBrowser control?

I need to prevent the .NET WebBrowser control from showing any "Do you want to open or save this file?" and "Save As" dialogs. Instead, I want to display a message box telling users that file downloads are disabled for security reasons. I started with the FileDownload event of WebBrowser, but it does not allow cancellation. Then, I used...

Java http download corrupts file

Hello all! I have a problem, which I do not seem to be able to solve... I do a http download of a file, but the CRC32 of the file on the server and on the client do not match. Also, the file has different size, so obviously I must be doing something wrong... when I download via Firefox, the filesize is ok... so I guess it is somewhere i...

Partially loaded XML in Flash

In Flash it is possible to read XML data as the XML File loads? i.e. reading the partially downloaded XML string as the rest downloads, so we can process it as quickly as possible. Do you get an event that fires everytime small chunks of data downloads? like with URLLoader? Do you get access to the raw string since partial XML cannot b...

How to download multiple files in VB6 with progress bar?

I want to download multiple files (mostly images) from VB6 application. presently i m using URLDownloadToFile but it allows only one file at a time and there is no progress bar. I want to download multiple files and with progress bar. please help. thanks in advance. my present code: Dim lngRetVal As Long lngRetVal = URLDownloadToFile(0...

Download textarea contents as a file using only Javascript (no server-side)

I am being asked to make a "download" button that downloads the contents of a textarea on the same page as a file, with the browser's "Save As" dialog showing up. Copy/paste would do the job just fine, but it is a "requirement". Right now, I am just posting the contents of the textarea to the server, which echos them back with "Content-...

setting the filename for a downloaded file in a rails application

Hi All, I have a controller action that allows a user to download a file with an extension of .ppt . It's not really a powerpoint binary, just an xml-ish format that powerpoint can read. the file is downloaded from the show action of a controller called ElementsController, but the show action is not actually defined in the controller, t...

[IE6] detecting when the "File download" popup is closed

I have a web page (made with JSF) where some links allow the user to get a PDF file. When the user clicks on such a link, a waiting popup (it is a modal panel) is displayed (because the generation of the PDF can be long), and once the file is created, IE displays the "File download" popup that proposes "Open", "Save" and "Cancel" option...

IE7 vnd.ms-excel popup disappears

I am using Java servlets and a custom framework which has options to download generated reports in various formats (CSV, PDF, XML Spreadsheet). This is done through a popup but does not seem to work when using content type of application/vnd.ms-excel in IE7. The popup appears but closes immediately. I have followed suggestions of settin...

ASP.NET 2.0 PageComplete Event troubles and File downloading

I am trying to place an action to happen after an entire .aspx page displays. The "action" is a function that uses the Response object to send a file to the user. More detailed information: I am trying to replicate the behavior of a link on the page, from a sidebar. I.E. I have a link on the main page for the Export action, and it wor...

ASP.NET MVC - How do I code for PDF downloads?

In WebForms, I would normally have code like this to download a PDF: Response.Clear() Response.ClearHeaders() '//Send the file to the output stream Response.Buffer = True Response.AddHeader("Content-Length", pdfData.Length.ToString()) Response.AddHeader("Content-Disposition", "attachment; filename= " & Server.HtmlEncode(filename)) '//...

How to download an image from an URL to a local dir?

I'm using C++ without .NET on Win32, how can I download an image over HTTP from a website without having to re-invent the wheel? Is there an API or library that provides a single function to do this? http://mywebsite/file.imgext --> C:\path\to\dir\file.imgext ...

Tool for downloading entire website

Can anyone recommend a tool for downloading an entire website. It is my own organisation's website, however I can't get ftp access as important people are on holiday. I would like to download the entire site exactly as it appears, i.e. same folder structure, image names. I have tried at least 4 different tools using google and download....

How do I update a shared file on IIS and ASP.NET?

We're replacing an "old" web application (the original CodeCentral was written over 10 years ago, now running at http://cc.embarcadero.com with over 12.7 million served) that uses a file based cache for serving downloads. The web application manages this file cache. The only complicated bit of using file-based downloads is updating a f...