file-download

From ASP.NET, How to Download Two Excel Files and Invoke Batch Command on Them?

Hi All, I need to download two Excel files onto the client, and then run a (diff) executable against them. I know how to download a single Excel file, from here. But how to download a second one automatically in succession? And then how to run a batch command on them? Is this even realistic? Any guidance or pointers would be gr...

How to provide (in IE and Firefox) a binary file download in a popup that closes ?

I need a cross-browser solution to the following use case: The user clicks an "export" button on one of our pages, which opens a popup with a form. On submitting the form, the user should receive a binary file download (a CSV file, for example), and the popup should close without changing the visible content of the parent window. We...

What could cause SharePoint to be unable to download a WSDL?

I created a BDC entry using the editor delivered with the SharePoint 2007 SDK. On my local installation there is no problem. When the sysadmin tries to import it into the staging farm, he gets the following error message: Application definition import failed. The following error occurred: There was an error downloading 'http://...

Force download of a file on web server - ASP .NET C#

I need to force the initiation of download of a .sql file, when user clicks a button in my ASP .NET (C#) based web application. As in, when the button is clicked, a save as dialog should open at the client end... How do I do this? EDIT This is the code I am using string sql = ""; using (System.IO.StreamReader rdr = ...

How to download and save a file from internet using Java

There is an online file (i.e. http://www.website.com/information.asp) I need to grab and save to a directory. I know there are several methods for grabbing and reading online files line-by-line (i.e. URL), but is there a way to just download and save the file using Java? ...

How do I ZIP a file in C#, using no 3rd-party APIs?

I'm pretty sure this is not a duplicate so bear with me for just a minute. How can I programatically (C#) ZIP a file (in Windows) without using any third party libraries? I need a native windows call or something like that; I really dislike the idea of starting a process, but I will if I absolutely have to. A PInovke call would be much ...

Download a file from the internet using java : How to authenticate?

Hi, Thanks to this thread http://stackoverflow.com/questions/921262/how-to-download-and-save-a-file-from-internet-using-java I know how to download a file, now my problem is that I need to authenticate on the sever from which I'm dowloading. It's an http interface to a subversion server. Which field do I need to look up into ? Using th...

Download file without popup in ASP.NET

I am downloading a file using the code btnDownloadTemplate.Attributes.Add( "onClick", "window.open('StudyReport/WordReportTemplate.doc', 'OpenTemplate', 'resizable=no,scrollbars=no,toolbar=no,directories=no,status=no,menubar=no,copyhistory=no');return false;" ); This will show a popup and the download dialog is shown. How can I avoid ...

forcing a file download with php

I know how to make the download occur, when the download happens it appends the html from the web page that causes the download. How do I filter out the HTML? ...

Download any filetype from a webserver

I need a link in an HTML page that could use any JavaScript to "start downloading" a normal webpage / file that is on my webserver, either filetypes like PDF / ZIP or simply the outputs of PHP / ASP / HTML. I know this is possible with some server-side download script that returns a *mime_content_type* so the browser handles it based on...

iPhone Download application

Hi everyone, I want to ask you whether it is simple to download data from URLs engind such as .php etc. or not. Downloading from direct urls, such as this one http://www.rarlab.com/rar/wrar380.exe is really simple using NSURLConnection. But if I use NSURLConnection on servers like rapidshare.com, or download.cnet.com etc. it is not worki...

Using Javascript to send an HTTP attachment to the user (open browser's Save as... dialog)

I'm new to web development, so I apologize if this question is noobish. I want to serve a file that is on the server's hard drive to the user when requested (ie, send an HTTP attachment to trigger the browser's "Save as..." dialog) in Javascript. The user clicks on a button on the page, the server generates a customized data file based o...

Download File Using C++

How can I make a program, like wget, such that the user can download files by typing the following? $ wget http://www.testpage.com/file.pdf And the program downloads the file. I want this syntax, my program name and the site, then the user press enter and my program start the file download. Please if you are going to post the code, ...

Having Django serve downloadable files

I want users on the site to be able to download files whose paths are obscured so they cannot be directly downloaded. For instance, I'd like the URL to be something like this, "http://example.com/download/?f=somefile.txt And on the server, I know that all downloadable files reside in a folder "/home/user/files/". Is there a way to mak...

Downloading an entire folder from my server to iPhone

Is it possible to download an entire folder of files from my server to the user's iPhone rather than just one file at a time? Also, is the NSURLConnection class the way to go? Also, should I be using an HTTP path or an ftp path? (I've gotten the download of a single file to work with the HTTP, but don't know how to with the ftp or even...

Server.WriteFile opens the file within browser rather than showing a Save As dialog

Hi I am writing a file using Response.WriteFile(path); My problem is that it always shows the save as dialog, what I want is that if the file type is jpg, pdf, or any browser compatible file it should open it in the browser; the save dialog should only open for any other browser-incompatible file ...

Download a file within a listview nested in an UpdatePanel?

How can you download a file from within a listview (or gridview) that is nested within an UpdatePanel? ...

While downloading a file, all requests are blocked

I'm having an issue within my application Pelotonics. When a user downloads a file the system seems to block all incoming requests until that file is done downloading. What is the proper technique to to open a download dialog box (standard from the browser), let the user start downloading the file, then while the file is downloading, let...

Downloading non unicode file(name)s from website

After uploading an image file (with Greek filename) on my website the image was converted to ÁÕ1.gif (Chinese to me) I am using this one to download the file from my winForms application Dim test as string = "ΓΕΡ" My.Computer.Network.DownloadFile("http://www.example.com/Images/" & test & ".gif", Application.StartupPath & ImageDir & fil...

NSData initWithContentsOfURL: options: errorPtr: delegate object?

Is there a way to assign some sort of delegate object when [[NSData alloc] initWithContentsOfUrl:... options:... errorPtr:...] is called so that I can monitor percentage complete of a download or is the best way to handle this sort of thing through the use of the asynchronous NSURLConnection stuff? ...