Currently we have C# .NET Framework 4.x app that exports data from a local database into a DataTable in memory, then writes it to a local TSV file. Then, the TSV file is zipped and uploaded to a remote https file object storage (OpenStack/Rackspace Cloud Files - similar to Amazon S3).
The plan is to enhance this process so that we can skip the "write to local TSV and zip" steps and instead stream or pipe out the in memory DataTable to a new remote file destination which will be a SFTP server (unless we find a better protocol/storage alternative that suits this particular detail of streaming/piping from memory) without first writing to a local file system.
Any thoughts on this and if there are libraries or code examples of writing out from an memory DataTable contents to an opened remote SFTP endpoint so that it sees it as a file upload? Or to a different remote endpoint type but still writing out the DataTable without first writing to the local filesystem? (could even be our current HTTPS Cloud Files or S3 like endpoint)