Available for: Content Management Server
Task: Sends the contents of a file to a server and returns a ticket ID for reference.
Additional information:
- This routine uses the streaming interface which allows large pieces of data to be transferred in a memory-saving manner.
- The maximum size of a piece of data transferred does not exceed 64 KB. This does not mean that the amount of data that can be transferred with this routine is limited to this value.
- The validity of the ticket ID is limited to the time specified in the streamingTicketValidityTimeInterval system configuration entry.
Syntax:
streamToServer host port fileName
Function parameters:
hostis the host name or IP address of the server.portis the port to which the data is sent.fileNameis the name or path of the file whose contents is to be sent to the server.
Return value if successful: The ticket ID under which the data can be accessed (string).
Necessary permissions: No restrictions.
Example:
CM>obj withId 53891 editedContent set blob.stream \ [streamToServer localhost 3002 ~/myDocument.pdf]