Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am currently trying to write an application that can send an xml file over a network stream. How do I send the actual xml file to a server? the xml file is already created and stored in C:\temp. I want to load the xml file from destination and send over the stream. I have now idea how to do this. Any help would be appreciated...
Posted

1 solution

Why not try:
How to: Upload Files with FTP[^]

Update 1:
Have a look at: http://dotnetcourses.blogspot.com/2009/01/sending-files-using-tcp.html[^]

Best regards
Espen Harlinn
 
Share this answer
 
v2
Comments
Andrew797 22-Jan-12 12:00pm    
I have created a client and server application my self, and on the server side application, implemented a TcpListener. I am currently able to write strings over the stream, and receiving it on the server side. Sould I cahnge my server side code to lo listen for ftp?? and how do I know what uri I can use when using FtpWebRequest request = (FtpWebRequest)WebRequest.Create(URI???);
Espen Harlinn 22-Jan-12 12:20pm    
Have a look at the updated reply...
Sergey Alexandrovich Kryukov 22-Jan-12 13:15pm    
A 5.
--SA
Espen Harlinn 22-Jan-12 14:02pm    
Thank you, Sergey!
NeptuneHACK! 22-Jan-12 16:27pm    
my 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900