I want to transfer XML from client to some server using FTP. What I get is the XmlElement object. I know that I can create the File and upload it to appropriate location (FTP).
However, I think it’s better to create File in memory (to avoid file saving on the local disk).
Can someone guide me how can i achieve this?
I am using C# 4.0.
You can use FtpWebRequest.GetRequestStream() to write directly to the request stream without first saving the file on disk
XmlElement.OuterXml returns a String representation of the XmlElement.