VintaSoft Twain .NET SDK 15.4: Documentation for .NET developer
Vintasoft.Twain.ImageUploading.Http Namespace / HttpUpload Class / AddFileField(String,String,Stream) Method
Syntax Exceptions Example Requirements SeeAlso
In This Topic
AddFileField(String,String,Stream) Method (HttpUpload)
In This Topic
Adds file field information to the POST request.
Syntax
'Declaration

Public Function AddFileField( _
ByVal fieldName
Field name.
As String, _
ByVal fieldValue
Field value.
As String, _
ByVal stream
Stream with the data of the file field.
As System.IO.Stream _
) As Boolean

Parameters

fieldName
Field name.
fieldValue
Field value.
stream
Stream with the data of the file field.

Return Value

true if information about file field was added to the POST request successfully; otherwise, false.
Exceptions
ExceptionDescription
Thrown if fieldName, fieldValue or stream is null.
Example

Please see example here: PostData.

Requirements

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

See Also