 |
|
 |
Is it possible to use this with ASP.NET? If so how can I do this?
|
|
|
|
 |
|
 |
thank for your api, its good
|
|
|
|
 |
|
 |
but how to add download time??
in the filedownloader or ref class?
|
|
|
|
 |
|
 |
I can only echo the praise of the users.
The one thing I wish was in the class is the ability to specify not only the destination folder but the file name as well.
|
|
|
|
 |
|
 |
I appreciate you taking the time to make this api. works flawlessly and i will be using it to make stylized wallpaper rotator.
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_______________________________________________________________________________________
My programs never have bugs, they just develop random features.
_______________________________________________________________________________________
Computers are so strange, you just yawn good and proper and they've got something new out! R. A.
|
|
|
|
 |
|
 |
If I have a non direct link to a file i get exception (when i put that link in ie i get save or open dialong)
the exception is :
System.ArgumentException was unhandled
Message="Illegal characters in path."
Source="mscorlib"
StackTrace:
how can I fix it ?
Thanks in advance
|
|
|
|
 |
|
 |
Hello Phil!
Very good article, but i have one question.
I need to verify files before downloading - so i implement new method
public class FileDownloader
{
....
public bool IsRemoteFileExists(string pUrl)
{
try
{
WebRequest req = WebRequest.Create(pUrl);
if (Proxy != null)
req.Proxy = Proxy;
Stream ret = req.GetResponse().GetResponseStream();
ret.Close();
return true;
}
catch
{
return false;
}
}
....
}
What do you think about this code
|
|
|
|
 |
|
 |
Hello, I'm trying to use this in a mono app but keep getting a sharing violation on line 264 of the source. The code is trying to write to the downloading file before the previous write operation has finished it appears.
Could someone smarter than me suggest a fix?
|
|
|
|
 |
|
 |
Newbie's here. I want to download multiple files in VB2005. So far, I have used For loop with My.Computer.Network.DownloadFile but it freezes my GUI. This looks like a code I want. Please suggest me.
Thanks.
|
|
|
|
 |
|
 |
You might try creating a new thread using the System.Threading namespace.
FeedMonster 2.0 Hourly builds
|
|
|
|
 |
|
 |
can this download from a webdav server?
|
|
|
|
 |
|
 |
Hi Phil,
how do I define the Proxy information?
Thanks in advance
Oren
|
|
|
|
 |
|
 |
In the FileDownloader class, set
private IWebProxy proxy = WebRequest.DefaultWebProxy;
instead of
private IWebProxy proxy = null;
That should set the proxy to the default for your user's computer.
|
|
|
|
 |
|
 |
Sorry for the delay I can't even begin to explain the workload I have in front of me right now! Anyway I'll keep this brief, here's the link:
File Downloader UI
Like any programmer, I'm never happy with the end result because it can always be made better, unfortunately I don't have any more time to devote to this - so send me your suggestions or code changes and I'll be happy to post them in the article.
Enjoy!
-Fred
Email: fred[at]eastpointsystems.com
|
|
|
|
 |
|
 |
First off, this is a fantastic class that makes file downloading easy in .NET.
However, I was would like to see something akin to 'Alternatives' to be implemented - like in applications such as GetRight
|
|
|
|
 |
|
 |
Good idea, this has been implemented in the latest version.
|
|
|
|
 |
|
|
 |
|
 |
Good idea, hey!
|
|
|
|
 |
|
 |
I have developed a WinForms UI for this file downloader. If there is interest for this, reply here and I will post it to code project.
Also, there is a small bug in otherwise extremely well written and useful code. In the main Download method, when a download is canceled you have to close the response stream in the DownloadData object or the thread lingers and the app doesn't exit properly:
// break on cancel
if (canceled)
{
gotCanceled = true;
data.Close();
break;
}
Add the data.Close(); line.
Nice work!
|
|
|
|
 |
|
 |
Wow, nice catch! I will include that fix in the next release of this code.
Also I'm sure lots of people wouldn't mind having a GUI to play with. I'll be sure to link to it in the article if you post it here at CodeProject.
Thanks
-Phil Crosby
|
|
|
|
 |
|
 |
Hi derfsplat,
i'm interest in your WinForms UI for this file downloader. I'm pleased if you post it to code project.
greetz
btw. nice work @ Phil Crosby and John Batte
-- modified at 10:43 Tuesday 25th July, 2006
|
|
|
|
 |
|
 |
for sure we are interested in this gui.
please set up an CP article, or spread it via download over the world!
cheers
|
|
|
|
 |
|
 |
remote server returned an error: (407) Proxy Authentication Required.
dp
|
|
|
|
 |
|
 |
Are you using a proxy on your system when you run this, or accessing a download that requires a username and password?
-Phil Crosby
|
|
|
|
 |
|
 |
ISA server, with Windows authentication
dp
|
|
|
|
 |