Click or drag to resize

DocAI UploadFile Method

Uploads a file to the AI service.

Namespace: Spire.Doc.AI
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public string UploadFile(
	string fileName,
	Stream stream
)

Parameters

fileName
Type: System String
The name of the file to be uploaded.
stream
Type: System.IO Stream
The stream containing the file data.

Return Value

Type: String
The result contains the file path on ai server as a string.
See Also