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
)
Public Function UploadFile (
fileName As String,
stream As Stream
) As String
public:
String^ UploadFile(
String^ fileName,
Stream^ stream
)
member UploadFile :
fileName : string *
stream : Stream -> string
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