Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.1k views
in .NET FTP by (161k points)
A user writes:

Hi,

I am trying out your FTP dll and having problems when using Put and Get when passing/retrieveing the data as Stream.

In the case of Put( Stream, string ) no data seems to be transferred as the resulting file on the remote host is empty.

When using Get( Stream, string) I cannot access the stream object after having successfully used the get command. Get a message saying that the stream is closed.

Everything works fine when I use the file-based version of Get and Put (ie Put/Get(string ,string) )

Any advice?


Take a look at the unit tests, in particular TestTransfer.cs.

There is a method, TransferStream(), that demonstrates how to transfer using streams.

Please log in or register to answer this question.

Categories

...