Quantcast
Channel: Rebex Q&A Forum - Recent questions and answers
Viewing all articles
Browse latest Browse all 3862

How to use stream for file movement on same FTPS server.

$
0
0

Hi,

I need to create multiple copies of a file on the same FTPS server using ftp.PutFile(Stream sourceStream, string remotePath) method. However, when I run my application, every time I get Rebex.Net.FtpException as "Another operation is pending."
Here is my code.

using (var stream = ftp.GetDownloadStream(filePath))
 {
  ftp.PutFile(stream, filePath1);
 }

Viewing all articles
Browse latest Browse all 3862

Trending Articles