FormDataCollectionAdd Method (String, Stream, String, String) |
Adds stream data to the collectoin. Use this method to post any type of file.
Namespace:
Atalasoft.Twain
Assembly:
Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public void Add(
string fieldName,
Stream data,
string fileName,
string contextType
)
Public Sub Add (
fieldName As String,
data As Stream,
fileName As String,
contextType As String
)
Parameters
- fieldName
- Type: SystemString
The field name of the form object. - data
- Type: System.IOStream
A Stream containing the data to be posted. - fileName
- Type: SystemString
A filename used to represent the stream data. Many web applications use this filename when
saving the data onto the server. If a filename is not provided a generic name is used. - contextType
- Type: SystemString
The context type to use for this data. If this parameter is not set,
application/octet-stream is used.
See Also