Click or drag to resize

PresentationAI UploadFile Method

Uploads a file to the AI service.

Namespace: Spire.Presentation.AI
Assembly: Spire.Presentation (in Spire.Presentation.dll) Version: 10.4.2.0 (10.4.2.6046)
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
result contains the file path on ai server as a string.
See Also