FTP a file to a FTP server with .NET code

    Hi,

I want my web app to be able to upload a user submitted file via FTP to another server.  I'm checking out components and they seem way out of price range for me ($399+) 

Isn't there some simple source code in .NET available ?   Or maybe somebody knows a good, reliable, cheaper component ?

Any help much appreciated

thanks,
mike123
0
mike123
8/22/2006 2:29:33 AM
asp.net.component-discussions 1793 articles. 0 followers. Follow

4 Replies
1055 Views

Similar Articles

[PageSpeed] 12

See the Google search results for c# ftp upload, more specifically http://www.csharphelp.com/archives/archive9.html.

Ryan


Ryan Olshan
ASPInsider | Microsoft MVP, ASP.NET
http://ryanolshan.com

How to ask a question
0
StrongTypes
8/22/2006 2:42:45 AM
    Hi Ryan,

Thanks a bunch.... I forgot to mention I only know VB.NET =[

would you happen to know of any others ?  i'd love something as simple as

ftpupload(filepath,username,password,address)

am I asking too much?


 thanks a bunch :)
mike123
0
mike123
8/22/2006 3:17:01 AM

Just switch the search term to vb.net ftp upload.

http://www.codeproject.com/vb/net/FtpClient.asp

Ryan

 


Ryan Olshan
ASPInsider | Microsoft MVP, ASP.NET
http://ryanolshan.com

How to ask a question
0
StrongTypes
8/22/2006 3:27:35 AM
thanks that was great!!  much easier in 2.0
mike123
0
mike123
8/24/2006 12:41:30 AM
Reply:

Similar Artilces:

VB.NET
All, This is probably a much harder question than what should go in the "Getting Started" forum, but I am new and don't know where to put it. Anyways, I am currently developing an FTP class in VB.NET. It's kid tested, mother approved when trying to access an FTP Server on a Windows box meaning I can connect, run commands, upload and download a file no problem. My issues come when I try to use the same class with the same commands to access an FTP server on a UNIX box. I can connect and login just fine, but after that all my commands come back "500 'PWD': command not understood.". This is fo...

Net::SSH and Net::FTP?
------_=_NextPart_001_01C3B7DF.20E3F54A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I would like to use SSH to login to a remote system, then using FTP, upload a file from the remote machine to another machine which will display the data. If I can automate this process, I think I'll be in great shape, tell me does this code seem like it would work for this? >use Net::SSH::Perl;=20 >my $ssh =3D Net::SSH::Perl->new($host); #Logging into the remote = machine >$ssh->login;=20 >my($READ, $WRITE) =3D $ssh-&...

Net:FTP, Net::Cmd
I'm using Net::FTp and Net::Cmd modules in a script to completely automate some FTPing stuff. snippet $ftp->put($fileh,"/tmp/test.txt") || die "cant put the file\n"; $ftp->command("chmod","755","test.txt") || die "Cant run quot\n"; $ftp->quit(); I have no luck making the $ftp->command stuff to work. I'm using solaris 5.8 ftp client. Anyway, I can make this work? Native Solaris ftp client/server can not support "quot site" stuff. Am I out of luck?? Please dont offer suggestions to use &...

FTP Server Components / How can I write an FTP Server?
HÝ, I have to write an FTP Server. Server will read folders and files from DB. There must be full fuctional. (Directory browsing, creating, deleting, file upload/download, delete etc) Is there any component set that I can do this? Regards. This is an open source components with samples how to use FTP both as client and server. For DB application try www.advantagedatabase.com . You can download their 2-user db server for use in development or you can use MySQL. "Gurcan YUCEL" <gurcan@workmail.com> wrote in message news:121734@forums.codegear.com... ...

How does the Perl Module called "NET:ftp" logon to an FTP server?
------=_NextPart_000_0057_01C29F19.F963C7E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello. This is my first email to beginners@perl.org. Please pardon the fact that this question is very vague...and = long....and any help is appreciated...thanks in advance... I have some Unix (korn shell) ftp scripts that automatically logon to = remote ftp servers and get and put files. These scripts...up to this point...have worked great...but now I have an = annoying problem... The LAN that I'm on has recently upgraded t...

use VB.net to download file from FTP server
I want to write a VB problem that can download files from my ftp server. how do I do it? any free component to download? thank you. well, i cant suggest a free component.  However, the .Net framework has a number of classes for getting files from HTTP servers.  I don't know about a FTP site but this is what works for me. Dim wc As New System.Net.WebClientDim DLAddress As String = "http://YourSiteName.com/download/" + ProgramName + ".msi"Dim DLLocation As String = "c:\SomeDirectory\" + ProgramName + ".msi"Trywc.DownloadFile(DLAddress, DLLocation)MessageBox.Show("There is an ...

Net::FTP to "put" local code instead of file
------_=_NextPart_001_01C2CEC6.775FC32A Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, Has any body done this/know how to dit/know if it's even possible?? =20 =20 __SHORT VERSION__ How do I / Is it possible to -- use Net::FTP to send a file to a remote = server that isn't an actual file but rather a variable with the file's = contents? =20 EG ::=20 $ftp->("$html_code","newfile.html"); # where $html_code actually holds = html code instead of a filename or filehandle =20 __LONG...

Smart Device Application for file transfer to a remote server in .Net Compact Framework (Using Visual Studio.Net 2003,C# code)
Dear all, We are developing a smart device application (using C# code) for .Net Compact Framework where we need to write a programme in C# code to transfer a file from mobile device to remote server/machine.Can anyony help us regarding this aaplication.If you have already done this or you find any article/link regarding to this application then please let me know about that. My mail id : anirbandas.ju@gmail.com Looking forward for your reply soon. Regards Anirban   hi hav u got any solution , becoz i too need. plz share with me...

automatic FTP not using NET:FTP module
Hi, I have to automate ftp process using perl or shell scripts. At the moment I cannot install NET:FTP class. So any pointers for me on how do this. thanks, vas _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ On Wed, Jul 11, 2001 at 10:20:58AM -0700, srinivas.s@excite.com wrote: > I have to automate ftp process using perl or shell scripts. At the moment I > cannot install NET:FTP class. So any pointers for me on how do this. Why can't you install Net::FTP? Really, it&#...

Net:FTP to copy a file
Howdy group, Any body have any suggestions on the best way to copy a file with = Net::FTP? I don't want to simply rename() a file as I want to keep the existing = one and create a new file that is the same. I know how to use stor() to use content in variables: my $stor =3D $ftp->stor("copyoforig.txt"); $stor->write($fileguts, length($fileguts)); $stor->close(); My question would be how would I use retr() to get 'orig.txt' into the = variable $fileguts? Would I simply do: $fileguts =3D $ftp->retr('orig.txt'); TIA all you wonder...

Debug to file with Net::FTP
Anyone know how to debug to a file instead of the screen with Net::FTP? = The script always works when running it manually, but when started from = cron, it has only a 50% chance of success. I think the problem is server = load, but I'd like to be sure be fore I start making changes. =20 Thanks, Brian Net::FTP has a debug flag, if its enabled all comunication messages get printed to STDERR. Here is an example on how to redirect it, if you dont care about STDERR [ dup2 will close it ]. If you do, you will have to play around a bit more. use Net::FTP; use POSIX qw( strfti...

is SAMBA server a ftp server, if not what is the name of ftp server in linux?
Title explains it all, I want to configure and use a ftp server :) -- yasar11732 ------------------------------------------------------------------------ Hi, No SAMBA is not an FTP server. There is some that exists : pureftpd, proftpd. Here's some readings : 'SDB:FTP server - openSUSE' (http://en.opensuse.org/SDB:FTP_server) -- DaaX ------------------------------------------------------------------------ DaaX's Profile: http://forums.opensuse.org/member.php?userid=30380 View this thread: http://forums.opensuse.org/showthread.php?t=451006 ...

RE: ftp w/o using Net::FTP
James P Donnelly <jpd4@cisunix.unh.edu> asked: > I am only trying to login into a server, travese to the > correct directory, dump a file and quit. I have hacked > together something that gets me to the server and > then it seems to hang at the login.. Has anyone written > something like > this w/o use of the module? Any insight would be very helpful > > Thanks -- Jim > > > $cmd = 'rftp'; > $rftp_commands = > "open > $fHost > $user > $...

FTP not using NET:FTP module ... Why dose this work???
Hi Using Luke Bakkens reply >If you can't install Net::FTP, the following works with the ftp.exe >program on NT to get the file /tmp/frazzle in binary mode: > >open FTP, "> tmpftp.$$"; >print FTP <<EOF; >$username >$password >bin >get /tmp/frazzle >bye >EOF >close FTP >system "ftp -s:tmpftp.$$ $hostname"; >unlink tmpftp.$$ > >on unix, the system call would be this i believe: >system "ftp $hostname < tmpftp.$$"; > >good luck >Luke I went and did the following, but ...

FTP with .NET
Hi all, In my ASP.NET app, I create a PDF file dynamically. I have to FTP this file to a remote FTP location. Any ideas on how to approach this issue? TIA Use a free .NET FTP component, like this one: http://www.enterprisedt.com/downloads/csftp/csftp.html Darrell Norton, MVPDarrell Norton's BlogPlease mark this post as answered if it helped you! Thanks! Appreciate your help. Are there any other free components for FTP in the market that I can compare with? Actually here's a whole list of 'em! http://csharp-source.net/open-source/network-clients These are just the C# ones. ...

Moving Net::Ftp to another server
Greetings I have just installed gnu-make on a test AIX server in order to install and test Net::Ftp.=20 This module installed fine and my program works using it.=20 Now its time to move my program over to the production server. How can I take Net::Ftp along without reinstalling make and Net::Ftp again? thanks...randy epperson Lands' End Unix sysadmin / VM support randall.epperson@landsend.com Don't anthropomorphize computers. They hate that. ...

NET::FTP
------_=_NextPart_001_01C65844.732C8C38 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi All, =20 I dont know whether this is a correct forum for asking this or not. But still if anybody can help me , its great. =20 We are having some perl scripts which are pulling data from a FTP Server .. We have a coonection through a NAT IP. Simultaneously , five or six scripts runs and fetch data from the same server. =20 Sometimes we got files successfully while sometimes we are getting error : =20 UNEXPECTED EOF FILE ON COMMAND CHANNEL. =20 ...

[PATCH] Net::FTP
I'm playing around with fetching things from the CPAN shell here. We have an FTP and an HTTP proxy here. While stepping through things in the debugger, I notice that Net::FTP::new loads $fire from $arg{Firewall} || $ENV{FTP_FIREWALL} || $NetConfig{ftp_firewall} || undef; $fire_type is initialised similarly but %NetConfig is not consulted. Is this deliberate? If not, I suggest the following patch: --- /home/pne/tmp/install/perl-5.8.0/lib/Net/FTP.pm Sat Jun 1 19:03:20 2002 +++ /home/pne/lib/perl5/5.8.0/Net/FTP.pm Tue Jan 28 11:29:10 2003 @@ -70,6 +70,7 @@ delete $arg{Port}; $fire_type = $arg{FirewallType} || $ENV{FTP_FIREWALL_TYPE} + || $NetConfig{firewall_type} || undef; } } End of patch. Oh -- this is for Net::FTP v2.65. Cheers, Philip -- Philip Newton <Philip.Newton@datenrevision.de> All opinions are my own, not my employer's. If you're not part of the solution, you're part of the precipitate. ...

FTP to FTP
Lately I've been seeing scans show up of a port 21 trying to connect to my port 21 (I am not, BTW, running an FTP server). Is this just someone trying to use my IP as the middleman in an FTP bounce attack, assuming my port 21 had been open and with a writeable FTP directory? http://www.cert.org/advisories/CA-1997-27.html ...

Net::FTP
------=_NextPart_000_0047_01C34691.35155AA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable #!/usr/bin/perl -w use strict; use warnings; use CGI::Carp 'fatalsToBrowser'; use CGI qw/:standard/; use Net::FTP; my $ftp =3D Net::FTP->new("ftp.yourserver.com", Debug =3D> 0) or die "Cannot connect to some.host.name: $@"; $ftp->login("username",'password') or die "Cannot login ", $ftp->message; $ftp->cwd("/") or die "Cannot change work...

Net::FTP
I tried a syntax check on this code just to make sure I am doing this correctly, and got an error. #!perl -w use Net::FTP; ------------------------------ # Can't locate Net/FTP.pm in @INC. File 'Katarina:Desktop Folder:getCerner.pl'; Line 3 # BEGIN failed--compilation aborted. File 'Katarina:Desktop Folder:getCerner.pl'; Line 3 How do I put Net::FTP in @INC? Thanks, Kathy Richmond ...

FTP and .NET
I need to connect to a FTP server, look for the existence of a particular zip file, unzip it and FTP it to a different server, execute a DTS package. I plan to write a Windows app for this. Is it possible to do FTP with .NET (with or without external componenets) and is it possible to do the functions that I outlined?Thank you in advance. Well heres an article on ftp in .net. Might help. As to unzipping a file I am unaware of an ftp command to do this and at the end of the day unzipping a file on the ftp server would depend on the abilities of ftp, not .net. You may need to download it to ...

Feed Net::FTP an in-memory file
Hello everyone, Very simple: I need to generate a file and upload it to ftp. Currently I am wrapping the file together, writing it out to a temp file on disk, calling $ftp->put($tmp_file) on it, and unlinking it. Is there a way to skip the write to disk? The put() method seems to expect a path only, rather than a filehandle.... Thanks ----- Original Message ----- From: Peter Rabbitson <rabbit@rabbit.us> Date: Thursday, April 21, 2005 10:42 am Subject: Feed Net::FTP an in-memory file > Hello everyone, > > Very simple: I need to generate a file a...

Net::FTP and list remote files
Hi list! I've made those functions than run fine with Perl and MS-DOS to download/upload files from/to Unix machines. How can I use Net::FTP to list remote files? I'd like to control overriting as I do with local ones. Is there something like $ftp->ls? Thanks a lot # ----------------------------------------------------------------------- sub uploadAuthRemoteFile { (my $transferDebug, my $transferMode, my $transferReplace, my $remoteServerDomain, my $remoteServerUser, my $remoteServerPass, my $remoteServerFileName, my $localFileToPut) = @_; use Net::FTP; my...

Web resources about - FTP a file to a FTP server with .NET code - asp.net.component-discussions

X.Org Server - Wikipedia, the free encyclopedia
X.Org Server refers to the X server release packages stewarded by the X.Org Foundation , which is hosted by freedesktop.org , and grants public ...

Thecus Announces Two New Rackmount NAS Servers
Thecus has introduced two new commercial off-the-shelf (COTS) rackmount enterprise-class NAS servers with 12 and 16 bays. They both run the latest ...

US gives immunity to State Dept staffer who set up Clinton email server: WashPost
... U.S. Justice Department has given immunity from prosecution to a State Department employee who helped set up and manage the private email server ...

Pirates hack into shipping company’s servers to identify booty
Pirates like those shown here aboard a dhow in waters off western Malaysia in January 2006 were using data stolen from a shipping company's systems ...

Report: Worker who helped set up Clinton email server gets immunity
State Department employee Bryan Pagliano worked on Clinton's private email server at her Chappaqua, N.Y.

DOJ grants immunity to ex-Clinton staffer who set up email server
Bryan Pagliano, a former Clinton staffer who helped set up her private email server, has accepted an immunity offer from the FBI and the Justice ...

DOJ grants immunity to ex-Clinton staffer who set up email server
CNN International DOJ grants immunity to ex-Clinton staffer who set up email server CNN International Washington (CNN) Bryan Pagliano, a former ...

Ex-Hillary Clinton staffer, who set up email server, granted immunity by DOJ - CNNPolitics.com
Bryan Pagliano, a former Hillary Clinton staffer who helped set up her private email server, has accepted an immunity offer from the FBI and ...

IDG Contributor Network: Building your SharePoint Server 2016 farm using MinRoles
SharePoint Server 2016 introduces the MinRole feature, which is used during the deployment of SharePoint Server 2016 to define the role of the ...

New TLS decryption attack affects one in three servers due to legacy SSLv2 support
... have discovered a new weakness that could allow attackers to spy on encrypted communications between users and a third of all HTTPS servers. ...

Resources last updated: 3/7/2016 11:12:45 AM