FTP To Database

  • Thread starter Thread starter RayAll
  • Start date Start date
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
 
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
 
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
 
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.
 
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
 
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.
 
Back
Top