Need to add the ability to download something to a Memory stream, a FileStream is not always the desired Stream to use.
Comments: ** Comment from web user: DevonCustard **
Comments: ** Comment from web user: DevonCustard **
This works for me
var memoryStream = new MemoryStream();
var streamReader = new StreamReader(memoryStream);
if (!scpClient.IsConnected)
scpClient.Connect();
scpClient.Download(fileName, memoryStream);
memoryStream.Position = 0;
var fileContents = streamReader.ReadToEnd();
Now ironically I cannot get Upload to work with a memory stream.