OFTPServer Code Example: Sending a file from a stream

OFTPServer can send files from a stream.

Date Entered: 02/28/2014    Last Updated: 02/28/2014

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 entry please contact our support team at kb@nsoftware.com.