VintaSoft Twain .NET SDK 15.0: Documentation for .NET developer
Vintasoft.Twain.ImageUploading.Ftp Namespace / FtpUpload Class / AddFile(String,Stream) Method
Syntax Exceptions Example Requirements SeeAlso
In This Topic
    AddFile(String,Stream) Method (FtpUpload)
    In This Topic
    Adds file information to the FTP request.
    Syntax
    'Declaration
    
    Public Function AddFile( _
    ByVal fileName
    File name.
    As String, _
    ByVal stream
    Stream with the data of the file field.
    As System.IO.Stream _
    ) As Boolean

    Parameters

    fileName
    File name.
    stream
    Stream with the data of the file field.

    Return Value

    true if information about file was added successfully, false otherwise.
    Exceptions
    ExceptionDescription
    Thrown if file name or memory stream is null.
    Example

    Please see example here: PostData.

    Requirements

    Target Platforms: .NET 8, .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also