Send n Receive Files from Web Server

monkeybiz

Member
Joined
Mar 5, 2003
Messages
12
Location
Singapore
Hi, I am creating a project that allows users to send and receive files to and from a Web Server. The problem is I do not know how to go about doing it:confused: . I try not to use ASP.Net and maybe ADO.Net cos Ive got very little knowledge on these 2 languages.

I am currently working on a windows application form, and would like to know if there is any way of connecting by means of a Connector or Socket or anything else I do not know of?

I do really need help in this area as my deadline is just a week away from now. Any help will be extremely appreciated. Thanks in advance.
 
Im surprised you committed yourself to a project with a deadline a week away, not knowing how to do the task.

You can use the WebClient class to easily download and upload data from and to a webserver. Check it out.
 
Well actually....

Thanks for your help, I will go check it out. :)
I noticed that in VB (not .NET) they have a component called Microsoft Internet File Transfer 6.0 where we can make ftp downloads and manipulate files. I was actually looking for something like that in .NET, however I couldnt find any... Hence I posted my problem in the forum

Actually I have already finished my project but it was a last
minute group decision to put my xml files onto a live web server. So I need to create that link to the web server.

Once again, thanks for your help!!
 
The WebClient is pretty much the .net replacement for that control, only it doesnt do FTP by default. You can, however, get plugins for it that let it do FTP (Im told).
 
Hi, This is what i tried:

WebClient1.BaseAddress = "http://www.blablabla"

WebClient1.UploadFile("http://www.blablabla" , "test.txt")

However they returned an exception:
I notice that there is another way to use uploadfile by specifying the method but im not sure what methods there are?

An unhandled exception of type System.Net.WebException occurred in system.dll

Additional information: The remote server returned an error: (405) Method Not Allowed.

Anyway, I dont thihnk I canuse the Webclient, cos I also need to rename and delete and move the files around.. :(
 
I have no idea how uploading files via http would work, anyway. Web servers are meant to provide pages for download, not serve as a way to upload files. Thats pretty much where you want FTP.
 

Similar threads

Back
Top