Directly write contents of a string object to the remote file

Advertisement

Gert.Broekhaar@rivm.nl
Joined:
Posts:
2

Directly write contents of a string object to the remote file

Hello,

Being aware that my question perhaps is not in line with the SCP-protocol, I wondered if it is possible to directly write the contents of a .NET string to the remote file? Using the PutFiles-method I see that the first two parameters are localPath and remotePath. I would like to skip the step of first writing the string contents to a local file and then using the PutFiles but the method doesn't seem to have an overload to support this approach. Is there a way to accomplish this with WinSCP?

Thanks very much,

Gert

Reply with quote E-mail

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
33,846
Location:
Prague, Czechia

Re: Directly write contents of a string object to the remote file

It's not supported in the current version of WinSCP.

The next version of WinSCP will supporting streaming with SFTP protocol:
https://winscp.net/tracker/1738

I can provide you a development build, if you want to try it.

Reply with quote

Advertisement

You can post new topics in this forum