Uploads several images in buffer as a multi-page PDF file to the HTTP server via HTTP post method.

Namespace: Dynamsoft.DotNet.TWAIN
Assembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public bool HTTPUploadThroughPostAsMultiPagePDF(
	string strHTTPServer,
	string strActionPage,
	string strFileName,
	IndexList aryIndex
)
Visual Basic
Public Function HTTPUploadThroughPostAsMultiPagePDF ( _
	strHTTPServer As String, _
	strActionPage As String, _
	strFileName As String, _
	aryIndex As IndexList _
) As Boolean

Parameters

strHTTPServer
Type: System..::..String
string strHTTPServer:the name of the HTTP server.
strActionPage
Type: System..::..String
The specified page for posting image files. This is the relative path of the page, not the absolute path.
strFileName
Type: System..::..String
string strFileName: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 PDF file with the same file name on the HTTP server, the old PDF file will be replaced by the newly uploaded one.

Exceptions

ExceptionCondition
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.

See Also