upload file ??

jackgreat

Active member
Joined
Apr 17, 2006
Messages
35
Programming Experience
1-3
Hi,

I need a code (in VB.NET) to upload a file to my webserver.

For example: if i want to upload a file to http://www.abc.com/hi/ then how do i do using VB.NET.

I would be glad if anyone can help me out.

Thanks,
Greatchap
 
BadgerBytes link shows how to implement FTP using generic socket programming. FTP is the regular way of uploading files to a webserver, unless there is a webpage upload form you want to automate. In .Net 2.0 you got a simpler option for FTP with the System.Net.FtpWebRequest class, see the Planet Source Code example here http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3913&lngWId=10
You can also use the System.Net.WebClient to upload to FTP server, this should be even easier, see for instance the UploadFile method in documentation.
 
thx

Thanks a lot ppl. I can also upload using my.computer.network. upload feature in VS2005.

thanks again.

[thread closed]
 
Back
Top