download

Resumable downloads when using PHP to send the file?

We are using a PHP scripting for tunneling file downloads, since we don't want to expose the absolute path of downloadable file: header("Content-Type: $ctype"); header("Content-Length: " . filesize($file)); header("Content-Disposition: attachment; filename=\"$fileName\""); readfile($file); Unfourtunately we noticed that downloads pass...

HTTPHandler to Retrieve Download File from another server?

hey All, I would like to provide downloadable files to website users, but want to hide the URL of the files from the user... I'm thinking an HTTPHanlder could do the trick, but is it possible to retrieve a file from an external server and stream it to the user? Perhaps somebody can give me a hint at how to accomplish this, or point me ...

How do I redirect a file download using Grails?

I'm currently writing a website that allows people to download Excel and text files. Is there a way to redirect to a different page when they click, so that we run javascript and do analytics (i.e. keep download count)? Currently, nothing prevents the user from simply right-clicking and saving. Edit: To be more specific, it would be ...

Interesting UTF-8 Yahoo File Download Headers

My company runs a webmail service, and we were trying to diagnose a problem with Word downloads not opening automatically - the same *.doc file download from Yahoo Mail would open, but one from ours would not. In the course of investigating the headers we saw this coming from Yahoo: content-disposition attachment; filename*="utf-8''wor...

Connection Forcibly Closed error

I'm using ASP.NET WebClient.DownloadFile(url) to obtain images from the Image Servers of several of our clients. The 'url' is usually simple, like "http://somewhere.com/images/image01.jpg". This works great for 99% of our clients. But one is giving me a "An existing connection was forcibly closed by the remote host". Every time. I tri...

Restricting file downloads

Hi, I'm currently creating a website for a client that will basically involve selling various files. This is obviously a really common thing to do, which is making me feel kind of foolish for not thinking of a method for doing it. Once the purchase has been made the customer should be taken to a page containing the download link, as wel...

C# downloading a webpage. A better way needed, CPU usage high

I'm trying to get this piece of code working a little better. I suspect it's the loop reading one byte at a time. I couldn't find another way of doing this with gzip decompression. Implementing a StreamReader is fine, but it returns a string which I can't pass to the decompression stream. Is there a better way? byte[] bufffer = null; L...

Can web server settings override .htaccess file ?

I have build a website. in that website there is section to download file using php script. our company has two ISP connections. one ISP allows to dowload file but other blocks it. i thought this is browser problem but after hit and try methods, i come to conclusion that this is ISP problem. Am i right. please help me out. ...

Browser add-on to find a download's origin

Back in the earlier days of the internet I remember that in certain browsers, every time you downloaded an image or a file, the URL of where that file was downloaded from would be written into that file's properties (I guess the summary tab?). I think Netscape v2 did this if I remember correctly. I really miss that kind of functionality...

Any pointers on making a downloader application? Preferably a Wix/MSI ?

We've got an application we'd like our users to download. Currently they click a link and download the EXE. What we'd like to do is have a launchpad/downloader application that would be small and fast to download, which would then download and install the main application. In a perfect world the downloader would be a MSI (so we could ...

JDK Download problem: Your download transaction cannot be approved. Contact Customer Service.

I tried to download the JDK last friday and then again today and was "greeted" with the following message: "Your download transaction cannot be approved. Contact Customer Service." Does anyone else get the same message? Is there any workaround for this issue? Apparently this error appears when you are in one of the following countries:...

Round trip editing of binary documents stored on a server

Hi all, I'm looking to build some functionality for a content management system for the editing of files stored on the server. I'd like to provide users the ability to easily download files locally to their computer, open the file for editing, and save it back to the server. The process should be as seamless as possible. Here's the s...

C#-Cant Access File-because it is being used by another process exception

I have an ASPX program where i am downloading a file from the www using DownloadFile method of webClient Class and the do some modifications on it. then i am Saving it to another folder with a unique name.When I am getting this error The process cannot access the file 'D:\RD\dotnet\abc\abcimageupload\images\TempStorage\tempImage.jpg' be...

Secured File download in Groovy

I need to get a file into memory in my app from a secured web location. I have the URL of the file to capture, but can't seem to get the security issue resolved. Here's the code from the Cookbook samples page: def download(address) { def file = new FileOutputStream(address.tokenize("/")[-1]) def out = new BufferedOutputStream(...

Return file from python module

Edit: How to return/serve a file from a python controller (back end) over a web server, with the file_name? as suggested by @JV ...

Downloading the gzip file and Uncompressing to retrieve Content using IPHONE SDK on iphone and ipod touch devices.

Hi, I had the following questions related to downloading the file from the server. a) Is it possible to download directly the GZIP (Compressed)file to the iphone device using IPHONE SDK. b) If the compressed file can be downloaded , then how to uncompress it(using ZLIB or else...). Thank u. ...

How to make PDF file downloadable in HTML link?

Hi, I am giving link of a pdf file on my web page for download, like below Download Brochure The problem is when user clicks on this link then If the user have installed Adobe Acrobat, then it opens the file in the same browser window in Adobe Reader. If the Adobe Acrobat is not installed then it pop-up to the user for Downloading t...

IE7 having problems when redirected to large excel files

We've got a page in our asp.net web system that uses response.redirect to redirect the user directly to an excel file so it will download "automatically" without the user having to to a right click / save as. This works great - except for files over about 100k in IE7. Other browsers just download the large file fine, and IE works fine ...

IIS file download hangs/timeouts - sc-win32-status = 64

Any thoughts on why I might be getting tons of "hangs" when trying to download a file via HTTP, based on the following? Server is IIS 6 File being downloaded is a binary file, rather than a web page Several clients hang, including TrueUpdate and FlexNet web updating packages, as well as custom .NET app that just does basic HttpWebReque...

Can we download the video from youtube?

I wanted to know if somebody knows that if there is way to download a video from youtube? ...