Uploads all images in buffer to the HTTP server through HTTP Post method as Multi-Page PDF.

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

Syntax

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

Parameters

strHTTPServer
Type: System..::..String
The name of the HTTP server.It should be only the name of the HTTP server, without "http://" or "https://".Port number is not needed here.
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
The name of the image to be uploaded.

Return Value

True indicates success. False indicates failure.

Remarks

The field name of the uploaded image is RemoteFile. IMPORTANT: Dynamic .NET TWAIN uses a special way to see if an image is uploaded and processed successfully by server. If the server returns 0 bytes, indicates success. Otherwise, indicates failure. In other words, when the uploaded image is processed successfully, the action page on the server should not return anything, even the "HTML".

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