OFTPServer Code Example: Sending a file from a stream

OFTPServer supports sending files either from disk or from a stream. To send files from a stream first set the UploadStream property of the connection object and then call SendFile with an empty FileName parameter. For example:

server.Connections[connId].UploadStream = ms; server.SendFile(connId, client.ClientSFIDCode, "", "test1.txt");

We appreciate your feedback.  If you have any questions, comments, or suggestions about this article please contact our support team at kb@nsoftware.com.