Uploads several images in buffer as a multi-page TIFF file to the HTTP server via HTTP put method.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
| C# |
|---|
public bool HTTPUploadThroughPutAsMultiPageTIFF( string strHTTPServer, string strFileName, IndexList aryIndex ) |
| Visual Basic |
|---|
Public Function HTTPUploadThroughPutAsMultiPageTIFF ( _ strHTTPServer As String, _ strFileName As String, _ aryIndex As IndexList _ ) As Boolean |
Parameters
- strHTTPServer
- Type: System..::..String
The name of the HTTP server.
- strFileName
- Type: System..::..String
The name of the image to be uploaded.
- aryIndex
- Type: Dynamsoft.DotNet.TWAIN..::..IndexList
IndexList aryIndex:an array. It contains the indices of images that need to be saved.
Return Value
True indicates success. False indicates failure.
Remarks
If aryIndex contains any invalid index, error message will be written into the ErrorString property and no image will be saved. But if aryIndex contains repeated valid index,
the repeated index will be filtered, only keep one index.
If there's a TIFF file with the same file name on the HTTP server, the old TIFF file will be replaced by the newly uploaded one.
Exceptions
| Exception | Condition |
|---|---|
| Dynamsoft.DotNet.TWAIN..::..TwainException | When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString. |