473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

FTP Download

Recent events have shown me that HTTP file downloads can be very unreliable
while FTP downloads remain rock solid.

In HTML I can provide a link on a page that starts an FTP download from
another server.

ASP.NET restricts me to providing a file from the current webspace and not
higher in the directory tree than my current location.

Is there a technique in ASP.NET that would allow me to start a download from
an FTP server under program control?

.... Thom
__________________________________________________ _
Thom Little - www.tlanet.net - Thom Little Associates, Ltd.
Nov 3 '08 #1
5 1958
"Thom Little" <th**@tlanet.netwrote in message
news:uN****************@TK2MSFTNGP03.phx.gbl...
Recent events have shown me that HTTP file downloads can be very
unreliable
while FTP downloads remain rock solid.

In HTML I can provide a link on a page that starts an FTP download from
another server.

ASP.NET restricts me to providing a file from the current webspace and not
higher in the directory tree than my current location.

Is there a technique in ASP.NET that would allow me to start a download
from
an FTP server under program control?

... Thom
__________________________________________________ _
Thom Little - www.tlanet.net - Thom Little Associates, Ltd.

1. Never heard of ASP.NET restricting you in providing links. Just do it as
you would do in HTML
<a href="blablalba?id=<%=id%>">My Link</ASomething like that. No need to
make a server control out of it.

2. What exactly do you mean by "start a download under program control"?

I think it would be best to say what you are trying to do....

George.

Nov 3 '08 #2
This is a public software distribution capability. It needs to do some user
processing and then the user can choose one of two packages to download.

If it is HTTP then I use MapPath to define the location of the file on the
local server. It is limited to the local webspace and does not permit you
to use a reference like "../".

An example program is ... www.tlanet.net/support

I would like to reference a file on an FTP server.
.... Thom
__________________________________________________ _
Thom Little - www.tlanet.net - Thom Little Associates, Ltd.
Nov 3 '08 #3
as MapPath converts an IIS virtual web path to a phyical path, it on only
work on those. you just want to do a response rediect to the ftp path
ftp:://server/path

if you are using the browser to ftp download, there is no reason for it to
be more reliable, as there is little difference in the protocols (just a
tcp/ip stream)
-- bruce (sqlwork.com)
"Thom Little" wrote:
This is a public software distribution capability. It needs to do some user
processing and then the user can choose one of two packages to download.

If it is HTTP then I use MapPath to define the location of the file on the
local server. It is limited to the local webspace and does not permit you
to use a reference like "../".

An example program is ... www.tlanet.net/support

I would like to reference a file on an FTP server.
.... Thom
__________________________________________________ _
Thom Little - www.tlanet.net - Thom Little Associates, Ltd.
Nov 3 '08 #4
Control ...

Your suggestion is very interesting and I had been overlooking it because I
wanted control to return to my .NET program after the file was downloaded.
In the sample at www.tlanet.net/support you can download both files from the
same invocation of the program.

Any suggestions?

HTTP vs. FTP Reliability ...

I had a problem for about three weeks when downloading files from
California, Great Britain, and North Carolina. If they were moderately
large files downloaded from an HTTP link they would fail at sometime during
the download or contain garbage when used. If they were downloaded from an
FTP link they would always succeed.

I suspected a router problem (Netgear 3500) and replaced it with a like
router and got the same result.

My provider sent a repair person who directly connected a machine he brought
with him to their existing modem when he visited my office.

It would fail if I used the router. It would not fail if I was directly
connected to their modem from my machine or the machine he brought with him.

I found that when using the router if I reduced the MTU (Maximum Transmit
Unit) size from 1500 to 1000 that a lot of the files would transfer
correctly. A 600MB file still failed.

About 12 hours latter my provider corrected some massive network problem (on
their side of their modem) and I rest the MTU size to 1500 and have been
running that way ever since. (I tested it by downloading all the files I
couldn't download over the previous three weeks three times each and
verified that they were correct.)

This instilled in me a strong desire to try providing my software from an
FTP link so my customers would never get to spend the exciting three weeks I
did on this absurd situation.

.... Thom
__________________________________________________ _
Thom Little - www.tlanet.net - Thom Little Associates, Ltd.
Nov 3 '08 #5
Rsponse.Redirect is EXACTLY the lead I needed. It is one of those things
you have to see before it finally "sinks in".

Thanks for the help.

.... Thom
__________________________________________________ _
Thom Little - www.tlanet.net - Thom Little Associates, Ltd.
Nov 4 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: chon | last post by:
I have an ASP page that is sent a file location as a parameter. It opens this file, loads the ADODB.Stream object and does a binary write to the page forcing the download dialog to appear. This...
0
by: jmd | last post by:
Hello. I want to write a C# program that does completely automatically what, until now, I do manually, witch is describe below : 1. I launch IE (6) 2. I browse to my desired download page, say...
0
by: Buddy Ackerman | last post by:
I am trying to implment a file download via a link such that when clicked, instead of starting the default application for that type of file the user will be presented with a download dialog...
3
by: Nathan Sokalski | last post by:
I have a webform that contains a button which I want to do three things: 1. Delete a record from a database 2. Let the user download a text file that is generated 3. Refresh the page to show...
18
by: jmd | last post by:
Hello, I posted the following in the C# forum but without one answer. But perhaps now in vb.net someone has some guidelines ! This is my question : I want to write a vb.net program that does...
1
by: a.r.austin | last post by:
Hello, I am trying to download a few files one after another from a remote server. Problem is that I don't know how to, or if I am able at all, set a time out for download. I don't want to time...
16
by: matt | last post by:
I have used some free code for listing files for download, but I want to send an email to the administrator when the file has been downloaded. I have got some code in here that does it, but it will...
1
by: JayLembeck | last post by:
Over 50,000 Free Ringtone. Get the Latest Ringtone. Download now- Fast, Free and Easy. Get your FREE surprise RINGTONE now! http://seekoutfast.info/free-ringtone/ free ringtone free ringtone new...
5
by: Khafancoder | last post by:
Hi guys, i am building a FileSharing website, i wanna allow users to be able using download managers such as DAP to download files from webserver but don't allow them to retrive files url......
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.