Uploading files from memory |
You can upload data from memory using any of the Upload methods that take a byte array as the first argument. All files with relative paths will be uploaded to your current remote directory.
Example
[C#]
byte[] array = Encoding.Default.GetBytes("This is a test\r\n");
myFtp.Upload(array, "test.txt");
[Visual Basic]
Dim array As Byte() = System.Text.Encoding.Default.GetBytes("This is a test" + vbCrLf)
myFtp.Upload(array, "test.txt")
See also