PutFile and stream problem - WeOnlyDo Discussion board

PutFile and stream problem (wodSFTP / wodSFTP.NET / wodSFTPdll)

by subcubes, Wednesday, December 21, 2005, 20:29 (6726 days ago)

Hi

Im trying to use PutFile, from a FileStream, like so:

FileStream fs = new FileStream(m_PutFiles[0].LocalFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);

m_SFTPPutFileInstance.PutFile(fs, m_PutFiles[0].RemoteDirName);


But it doesn't upload anything - and I don't get any Errors from DoneEvent. Im not using blocking.

Also, Ive surfed this forum to see if any other had the same issue - and thought I read something about, that ProgressEvent is not fired when I PutFile with a Stream, is this correct?

Regards
Torben Lajer


Complete thread: