Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: .net - Put method for a Byte Array

It's not that easy. WinSCP .NET assembly is a wrapper around WinSCP scripting.
It's not really intended for uses like yours.
jsteeleATsaxony

.net - Put method for a Byte Array

Thoughts on creating a Put method that accepts a byte array instead of a file path?

Something like...
public TransferOperationResult Put(byte[] data, string remoteFileName, string remotePath, TransferOptions options = null)

The data I am working with is an in-memory byte array and my environment does not have good place to store temporary files. So keeping everything in memory would be ideal.

Thanks,Justin