Using Session.PutFile() with stream, returns error Operation not supported
PutFile
using (var session = new Session()) { if (!session.Opened) session.Open(sessionOptions); var transferOptions = new TransferOptions { TransferMode = TransferMode.Binary, OverwriteMode = OverwriteMode.Overwrite, }; using (var stream = new MemoryStream(imgData)) { session.PutFile(stream, remoteFilePath, transferOptions); } }
session.PutFile
throws exception with error message
What can be the issue that is causing this error?Operation not supported.