Filter:C# VB.NET C++ (.NET) Java PHP C++ Delphi / Pascal (VCL) C++Builder (VCL)
Uploads specified objects to the server
[Delphi / Pascal (VCL)]
function PutRemoteObjects( Data : array of TObjectInfo; Index : integer; Count : integer ) : integer;
- Data - Array of ObjectInfo which contain objects that must be stored on the server
- Index - Starting index of ObjectInfo in Data, for which sending is performed
- Count - The number of ojects to send (0 - send all objects at once)
0 if the method succeeded or one of defined error codes in case of failure.
This method sends objects, referenced in Data, to the server.
When the method is called, ObjectID, ObjectHash and ObjectData properties need to be set in ObjectInfo. After the method is executed and if the server reported success, Status property of each ObjectInfo in the list will contain result of upload operation (stored OK or the object was locked).
Index and Count are used to perform the operation only on subset of objects (for better fault-tolerance and resumption of process).
Got questions or comments about this topic? Tell us about them.