AddStream(Tag: String; Stream: Object);
Tag. Stream name.
Stream. Data stream.
The AddStream method adds user data stream to the copied time series database.
Executing the example requires that the repository contains a time series database with the FC identifier.
Sub UserProc;
Var
mb: IMetabase;
RubUpdateEx: ICubeMetaUpdateEx;
Rub: IRubricator;
ms: IMemoryStream;
Begin
mb := MetabaseClass.Active;
RubUpdateEx := New CubeMetaUpdateClass.Create As ICubeMetaUpdateEx;
Rub := mb.ItemById("FC").Bind As IRubricator;
RubUpdateEx.Rubricator := Rub;
ms := New MemoryStream.Create;
ms.WriteByte(1);
ms.Seek(0, SeekOrigin.Beginning);
RubUpdateEx.AddStream("UserStream", ms);
RubUpdateEx.Save("C:\Param.zip");
End Sub UserProc;
After executing the example the FC time series database will be saved to the C:\Param.zip file. The file also contains the UserStream user stream.
See also: