download

Why does IIS7 ignore my content-type header when I use ASP.NET to stream files?

I have a simple web site with two pages. One displays a list of files, and the other streams a file when it's clicked in the list. All was fine in production for 6 months, but now I have to move the site to Windows 2008/IIS7. I have it mostly working, but the files don't open properly (in Firefox) because my content-type header is bei...

How do I get csv file to download on IE? Works on firefox...

I'm struggling with an odd error. I have a simple web app that grabs stuff from a DB then outputs it as a downloadable csv file. It works on firefox and chrome, but IE fails to recognize it as a csv file (thinking it is a html fle) and when I click save I get the error, "Unable to download {name of file} from {name of site}. Unable to op...

Download file from webservice - in ASP.NET site

I want to push a file to the browser from a website using a webservice. I'm currently reading the file into a base64 byte array, and returning that from the webservice. This webservice is called from a website, and i'm stuck on how to push this as the original file to the browser. Ideally I would like to read the byte array into a memo...

Intercept request for file download and send to Rails app?

Hi guys! I would like to make a Rails app to create a pretty download page for any file requested either through a link or by typing the url of the file. Is there a way to intercept the request for a file in Apache or elsewhere and send it to the app so it can generate the page? I'd also prefer not to change the url when redirecting to ...

Java multiple connection downloading

Hi all, I wanted to get some advice, I have started on a new project to create a java download accelerator that will use multiple connections. I wanted to know how best to go about this. So far I have figured out that i can use HttpUrlConnection and use the range property, but wanted to know an efficient way of doing this. Once i hav...

Blank installNotifyURI in OMA Download Descriptors

People can download content (music, images) for their mobile from my server. Im trying to use the installNotifyURI-tag of the download descriptors specified by OMA, to be able to find out if the download has been successful. When the user has downloaded the item I do get a POST to the url I specified in the installNotifyURI-tag. <i...

Downloading files with Makefile rules

I was planning something like: URLS=www.host.com/file1.tar.gz www.host2.com/file2.tar.gz $(somefunc $URLS): #somefunc produces downloads/file1.tar.gz downloads/file2.tar.gz mkdir -P downloads wget whatever # I can't get the real url here because the targets don't contain the full url anymore myproject: $(somefunc URLS) #File...

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"); } ...

Android Application Development O'reilly MJAnddroid Example Code

Good Afternoon... I recently bought the book "Android Application Development" from O'reilly and I'm at a section where it asked me to download MJAndroid Code and import into Eclipse... Here is the link http://examples.oreilly.com/9780596521509/ I was able to downloaded / import it but now I'm stuck... Here is what it saids... "You...

URLDownloadToFile API, how can it be used asynchronously?

How can this API URLDownloadToFile be used asynchronously? I need to show the progress of the download via SendMessage to a client window, which can't be done as the API appears to be synchronous and it never sends the OnProgress until the download completes. I have also seen some example codes involving IMoniker interface, but I can't f...

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...

iphone sdk/mac - Yet another problem with sockets

Hi guys, My program consists of 2 parts - A server socket (sits on port 3490) running on a different thread, and a client to test the server. Now the server has a pdf file, and I want the client to display it in a UIWebView. To achieve this I used the folllowing: NSURLRequest *urlRequest = [NSURLRequest requestWithURL:[NSURL URLWit...

Direct file download vs reading a file back as download

Is there any difference between creating a direct link to a file on a server, and doing something like reading the file from a location and setting the content type header then streaming back the data. I'm curious because I have a webserver that i'm using to download apps to a blackberry, if i create a file and have a direct link to tha...

Problem with downloads: slow and/or fails

I have the following script to let a visitor download a file: header( 'Content-Type: application/octet-stream' ); header( 'Content-Transfer-Encoding: binary' ); header( 'Content-Disposition: attachment; filename=' . $fileName ); header( 'Content-Length: ' . filesize( $filePath ) ); header( 'Content-Description: Download' ); header( 'Cac...

Limitation in Java HttpUrlConnection getting content length

Hi, Right so, I started my project on creating a Java download manager which is going nicely. The only problem I am seeing at the moment is when i request the content length of the URL. When i use the method provided by HttpUrlConnection's getContentLength, it returns an Int. This is great if i was only to ever download files that we...

How do I force download with html/javascript?

Hi guys, I have a link and if a user clicks it I need 2 things to happen: A proper HTTP response is sent to the user (especially with Content-Type: video/mp4) and a video file will automatically begin downloading. I have seen something of the sort with php, but I need it only with html/javascript. Is this possible? Thanks Alex ...

Ajax /jQuery finding if user completed the download

Here is what I am trying to do: I am making a custom text file containing a test. This test is unique to the user and well I don't want my server to stack all those text files. Is there a way to use Ajax/JavaScript/jQuery to find if the user has already finished the download and if they have get a return value (1 if finished) so the ...

[php] Youtube download'er in highest possible format (server side)

Welcome, I'm looking for youtube api what allow me to download youtube video in highest possible format. Few years ago this job was more simple because url had information about quality like "fmt=22" or "fmt=6" right now we are live in future and that information is embed in player. Now it's more complex... google use cache servers an...

construct a DOM tree from a string without loading resources (specifically images)

So I am grabbing RSS feeds via AJAX. After processing them, I have a html string that I want to manipulate using various jQuery functionality. In order to do this, I need a tree of DOM nodes. I can parse a HTML string into the jQuery() function. I can add it as innerHTML to some hidden node and use that. I have even tried using mozilla'...

Download a File - iPhone SDK

Hello everybody, I am sort of new to developing view-based iPhone applications, and I need to download this "txt" file off the internet and save it into the documents folder of the app. Can anyone show me simply how I can do this? The txt file is of a tiny size, so I wouldn't need any User interface objects... Thanks, Kevin ...