Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.9k views
in .NET FTP by
Hi, just wonder if anybody used the put(stream, string) method before? I am trying to understand how it works:

I need to create a file on the ftp server which contains a string of data. I could of course create a local file contains this string of data first then upload the file to the ftp. However, if I want to skip the creation of local file and create the file with data on the server directly, can I do that? Thanks!

1 Answer

0 votes
by (162k points)
You could use a MemoryStream or alternatively use

public virtual void Put(byte[] bytes, string remoteFile)

Hi, just wonder if anybody used the put(stream, string) method before? I am trying to understand how it works:

I need to create a file on the ftp server which contains a string of data. I could of course create a local file contains this string of data first then upload the file to the ftp. However, if I want to skip the creation of local file and create the file with data on the server directly, can I do that? Thanks!

Categories

...