dOPC Client Toolkit
Close
ua.filestream.TuaByteStringStream.SaveToOPCServer

Use to save a file from an OPC UA server.

procedure SaveToOPCServer(OPCClient: TdOPCUaClient; NodeId: string);
__fastcall SaveToOPCServer(TdOPCUaClient OPCClient, AnsiString NodeId);

If you want to save a file to an OPC UA server, you must use this method. But first you have to fill the Bytes property with the content you want to save on the server. This can be done with the LoadFromFile method. 

 

Parameter
Description
OPCClient
The reference to an active TdOPCUAClient object.
NodeId
The nodeid must be an object class with the definition type FileType, otherwise you will get an exception.
dOPC version 5.33. Copyright © 2025 by Kassl GmbH.