FTP To Database

R

RayAll

I am using HTTP to upload files to a database ,I'm just curious if I can do
it through FTP too and what would be the advantages and disadvantages of
these two method?

Thanks
 
J

John Timney \(ASP.NET MVP\)

Not easily. HTTP gives you direct access to the stream from within asp.net
so its easy to work with he binary object.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 
R

RayAll

But these is another approach saying that:

FTP is a bit more reliable and efficient, especially for larger files.It
also allows finer grained programatic control.
However, it tends not to be quite as user friendly

What do you think about this?

Thanks
 
W

William Stacey [MVP]

HTTP is over TCP so it is reliable. FTP may give you things like restart
for special implementations but don't see much advantage for just down load.
In the end HTTP download is just one HTTP header and the body as a byte
stream, so not much overhead at all. If you really want both, .Net 2.0 will
include ftp client. Other free and pay ftp apis are in the wild also.
 
A

ALI-R

I'm not concern about Download at all,I'd like to compare these two for
uploading .
What is the advantage of HTTP for uploading?

They say that FTP gives you the ability to resume the operation ,is that
true when you use asp.net interface to upload and download files?

Thanks
 
W

William Stacey [MVP]

I'm not concern about Download at all,I'd like to compare these two for
uploading .

Uploading same thing. Just a post header with a tcp stream following.
They say that FTP gives you the ability to resume the operation ,is that
true when you use asp.net interface to upload and download files?

Some FTPs. Not the FTP server in windows I don't think. Besides, how many
times is the TCP connection really going to fail? Probably an edge case
here so not worth worry about. If you connection between endpoints is weak,
then maybe you would want restart. IMO, I would just use the HTTP get/put
file methods and be done.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top