473,772 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FTP or HTTP to upload files through ASP.NET?

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

Nov 19 '05 #1
7 1470
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"RayAll" <Ra****@microsf t.com> wrote in message
news:OZ******** ******@TK2MSFTN GP15.phx.gbl...
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

Nov 19 '05 #2
But there is another opinin saying that:

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

What do you think about this?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:OI******** ******@TK2MSFTN GP10.phx.gbl...
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"RayAll" <Ra****@microsf t.com> wrote in message
news:OZ******** ******@TK2MSFTN GP15.phx.gbl...
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


Nov 19 '05 #3
What do you mean by reliability?

Thanks
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:OI******** ******@TK2MSFTN GP10.phx.gbl...
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"RayAll" <Ra****@microsf t.com> wrote in message
news:OZ******** ******@TK2MSFTN GP15.phx.gbl...
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


Nov 19 '05 #4
HTTP transfers seem to be a bit more susceptible to glitches from my
experience.
Also, with advanced FTP functions you can resume interupted file transfers.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"RayAll" <Ra****@microsf t.com> wrote in message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. .
What do you mean by reliability?

Thanks
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:OI******** ******@TK2MSFTN GP10.phx.gbl...
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"RayAll" <Ra****@microsf t.com> wrote in message
news:OZ******** ******@TK2MSFTN GP15.phx.gbl...
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



Nov 19 '05 #5
You can get direct access to the stream for FTP transfers too.
You'll have to write some custom code, or reuse some that's already freely
available on the internet such as these:
http://www.mentalis.org/classlib/ind...t+%26+Networks
http://www.codeproject.com/dotnet/dotnetftp.asp

ASP.NET 2.0 will have improved support for FTP so less code will be
necessary.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"RayAll" <Ra****@microsf t.com> wrote in message
news:O0******** ******@TK2MSFTN GP14.phx.gbl...
But there is another opinin saying that:

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

What do you think about this?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:OI******** ******@TK2MSFTN GP10.phx.gbl...
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"RayAll" <Ra****@microsf t.com> wrote in message
news:OZ******** ******@TK2MSFTN GP15.phx.gbl...
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



Nov 19 '05 #6
From my experience, I see the opposite. I once had to write a service that
downloads documents automatically at intervals from an FTP server, and
handling all of the errors in the process took me weeks to write. FTP does
no parity checking, uses no checksums, and dropped packets are a regular
occurrence.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:e0******** ******@TK2MSFTN GP10.phx.gbl...
HTTP transfers seem to be a bit more susceptible to glitches from my
experience.
Also, with advanced FTP functions you can resume interupted file
transfers.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"RayAll" <Ra****@microsf t.com> wrote in message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. .
What do you mean by reliability?

Thanks
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:OI******** ******@TK2MSFTN GP10.phx.gbl...
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"RayAll" <Ra****@microsf t.com> wrote in message
news:OZ******** ******@TK2MSFTN GP15.phx.gbl...
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




Nov 19 '05 #7
Resuming the file transfer thrugh an ASP.NET application????

Can you guide me to some related docs in this context?

Thanks

"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:e0******** ******@TK2MSFTN GP10.phx.gbl...
HTTP transfers seem to be a bit more susceptible to glitches from my
experience.
Also, with advanced FTP functions you can resume interupted file
transfers.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"RayAll" <Ra****@microsf t.com> wrote in message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. .
What do you mean by reliability?

Thanks
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:OI******** ******@TK2MSFTN GP10.phx.gbl...
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"RayAll" <Ra****@microsf t.com> wrote in message
news:OZ******** ******@TK2MSFTN GP15.phx.gbl...
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




Nov 19 '05 #8

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

Similar topics

4
2942
by: Tihon | last post by:
Hello! I again need your help, just can't understand whats going on. Got this upload pictures form and it's having problem handling large files (~1.5 - 2 MB). Everything works fine if i just upload files, like this: copy ($myfile, $uploadfolder . "/" . $myfile_name); Everything works fine, it can process large files and everything, but i need to make sure that people only upload pictures, so i change
1
2557
by: TK | last post by:
I have a file upload control to allow a user to select/upload a file to the server. They need to upload x number of files in one shot because they have to confirm that they are uploading x number files for processing. So I do not want the files to be uploaded until the user presses a submit button verifying that they want to submit x number of files for processig (processing refers to me doing something to the files once uploaded). Catch...
2
6063
by: Tom Wells | last post by:
I have a little file upload page that I have been able to use to successfully upload files to the C: drive of LocalHost (my machine). I need to be able to upload to a network drive from the intranet server. On the line: dirs = Directory.GetDirectories(currentDir) I get "Access to the path "\\les-net\les\Special Projects\ATSPDF" is denied." How do I get the GetDirectories command to user my user ID and password when it tries to hit the...
4
4487
by: Matt Jensen | last post by:
Howdy I've got a rather strange issue occuring. I used forms based .NET authentication, although I'm also setting some session variables when people login. However, I've found when people use one of my webform pages which includes a button that pops up a window where you can upload files, if you upload files in this popup window, it seems to somehow clear out all of the session variables and the users get logged out. However, if...
6
3337
by: =?ISO-8859-1?Q?J=F8rn?= Dahl-Stamnes | last post by:
I have a strange problem when uploading a PDF document to a web-server. When I try this to a web-server running Apache 2 on a FC 4, it fails. Firefox says that the document contain no data. If I upload it to a different web-server running RH 7.3 (an internal test-webserver), it works OK. The PDF document is created by OpenOffice 2.0 from a MS Word document. I have also had it converted to PDF in MS Word that could create PDF documents....
0
2835
by: dann2 | last post by:
hello, i try to upload in an access db two pictures at the same time. i use the adjusted sample code from persits. it looks like this: ... '<% ' Create an instance of AspUpload object 'Set Upload = Server.CreateObject("Persits.Upload") ' Capture uploaded file. Save returns the number of files uploaded 'Count = Upload.Save(Path) 'If Count = 0 Then 'Response.Write "message"
0
1377
by: phpfreak2007 | last post by:
Hi all, I am trying to upload file using VB HTTP Post method and winsock control . Can successfully upload the files when client machine is English OS, but create problem when upload from Chinese OS. Currently what i am doing is reading file in string and then build a html request and send these string data to upload. fuction which read a file content and buildhttp request is given below.. can anyone suggest what is the problem. is it so...
43
9921
by: bonneylake | last post by:
Hey Everyone, Well this is my first time asking a question on here so please forgive me if i post my question in the wrong section. What i am trying to do is upload multiple files like gmail does. I found a script that does this on easycfm.com (Topic 13543). But anyway when i try to upload multiple files it will create multiple records in my database (like it should), but it wont upload multiple files. What ever file i choose to upload...
5
6814
by: kailashchandra | last post by:
I am trying to upload a file in php,but it gives me error msg please Help me? My Code is like below:- i have one php file named upload.php and i have another html file named upload.html and inside html i am calling php file upload.php:- <?php
1
5724
by: achotto | last post by:
hi, i try to upload a multiple image files. after that i will rename the files name. the problem is when i upload a 2 or more same files name exp-goal.jpg, it will return "files already exist". ok this is my codes, Set Upload = Server.CreateObject("Persits.Upload.1") Count = Upload.Save("d:\cmsupload\cimg\") for each File in upload.Files ' '...sme operation here..
0
9621
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9914
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8937
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7461
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.