file-download

Always download file again when open a file in NetBeans IDE 6.8

Hi. I'm using NetBeans IDE 6.8. When I open a file, NetBeans opens an old file from my computer, not the actual one from the web-server. The problem is when some one else has edited the file on the web-server I need to download the file before I open it, so I don't lose the new changes. What I want to do is that NetBeans always downloa...

WebClient.DownloadFileAsync - Download files one at a time

Hello All, I am using the code below to download multiple attachments from a TFS server: foreach (Attachment a in wi.Attachments) { WebClient wc = new WebClient(); wc.Credentials = (ICredentials)netCred; wc.DownloadFileCompleted += new AsyncCompletedEventHandler(wc_DownloadFileCompleted); wc.DownloadFileAsync(a.Uri,...

Pause and resume download in flex?

Is it possible in an air application to start a download, pause it and after that resume it? I want to download very big files (1-3Gb) and I need to be sure if the connection is interrupted, then the next time the user tries to download the file it's start from the last position. Any ideas and source code samples would be appreciated...

Java Servlets: File download breaks when user navigates away from page

I have a servlet that allows users to download (potentially large) zip files from a web page. If the user clicks on a link to download a zip file, code similar to the following is executed in the servlet: response.setContentType("application/zip"); response.setHeader("Content-disposition", "attachment; filename=foo.zip"); response.setH...

ajax-updatepanel file download problem

I have a gridview inside an update panel which holds the list of uploaded files to application. I want, when a row is selected, on selectedIndexChanged event to return the file to be downloaded here is the code string path = MyFiles.Rows[filesGrid.SelectedIndex]["FilePath"].ToString(); FileStream fl = null; try ...

File Download Not Working

When I download the original zip it works fine, but when I download it using the below headers and stuff it doesn't work. I know it's better to take this route and tell the browser how to handle the file rather than leave it up to the browser, but I can't get this to work, so I'm tempted to use a header() forward. $path = $...

Download a static file in Silverlight 3 without using SaveFileDialog

I have a Silverlight 3 app that that will let users download PDF files of static content. The problem is that the SaveFileDialog in Silverlight 3 does not allow you to specify the default filename that appears in the dialog box. This means that users have to type the name themselves and this is confusing for them since they are accusto...

Internet explorer file download error while doing "readfile" - PHP

Hi, I have just moved a web application to a windows server and having some problems. One of it is - application stores list of names of files in a database table. when a files is requested for download it is sent to output by sending proper headers (depending upon mime type and then a readfile("document location/filename.extension"); ...

Creating a download page in ColdFusion 8

I have an application that allows admins to upload files. These files are stored outside of the web root so they are not accessible via a URL. In the past, we have always used code similar to below to then serve the file back to authorized users. Is there a better or more universal way to specify the type? This is especially relevant whe...

What are the benefits of showing "Your download will begin in x seconds"?

Are there technological benefits when presenting a "download page" that gives a message like the following? Your download should automatically begin in a few seconds, but if not, click here. Is there some bandwidth or server efficiencies with this? Or is it for the benefit of the user somehow? Why not just have your download l...

WebClient generates (401) Unauthorized error

I have the following code running in a windows service: WebClient webClient = new WebClient(); webClient.Credentials = new NetworkCredential("me", "12345", "evilcorp.com"); webClient.DownloadFile(downloadUrl, filePath); Each time, I get the following exception {"The remote server returned an error: (401) Unauthorized."} With the fo...

ASP.NET programmatic file download

So I have a page on which I dynamically generate a table and link buttons all inside a large UpdatePanel. Each link button when clicked will cause this method to be called. The goal is to have the link point to a file in my DB and when clicked allow the user to open/save as that file. This exact method works fine on another page of my si...

File Upload/Download in ASP.NET

Ok, I'm a real newbie at the ASP stuff... I have two related questions: What are my options for controls I can dynamically add to my webpart to allow a user to upload large files >100MB to the server? What are my options for controls to trigger a download of a large file in a web browser with a "Save As" dialog box, so that the server ...

Download a File from internet programatically with an Progress event using Delphi and Indy

I need a way to download a file from the Internet using Delphi via HTTP, Wich include an Progress event , I'm looking for a method wich uses the Indy components. I am using Delphi 7. Thanks in advance. ...

Download file and display contents with javascript

I have a simple webpage which has a link, on pressing it a file is downloaded(rest web service call). I need to read the file and display the contents using javascript. How do I do this? ...

Is it possible to download something to a default local dir quietly using a server side script?

I need to download something from server to local machine just by a visiting an url without any popup-window,using something like php or python.But cannot find a good solution.Is it possible or not?Hope someone can help me. ...

How to download part of a file via FTP in PHP?

I would like to download parts of files on a FTP server. I've got this solution: $opts = array('ftp'=>array('overwrite'=>false, 'resume_pos'=> 5*16+12)); $context = stream_context_create($opts); $version = file_get_contents ( 'ftp://'.$ftpAccount["username"].':'.$ftpAccount["password"].'@'.$ftpAccount["server"].'/...

Fastest way to download from web

Hi All I would like your opinions on what the best/fastest way to download files from a webserver would be? I have used WebClient. but most of the time it downloads slower than my web broswer... WebClient c = new WebClient(); using(c) { c.DownloadFile("http://blahblah.com/somefile.html", "righthere.html"); } ...

How do I download a binary file over HTTP using Ruby?

How do I download and save a binary file over HTTP using Ruby? let's say for example the url is http://somedomain.net/flv/sample/sample.flv I am on win platform and I would prefer not to run any external program. ...

How to programmatically download a large file in C#

I need to programmatically download a large file before processing it. What's the best way to do that? As the file is large, I want to specific time to wait so that I can forcefully exit. I know of WebClient.DownloadFile(). But there does not seem a way to specific an amount of time to wait so as to forcefully exit. try { WebClie...