Saves the Data Set to a stream.
Public Overloads Sub Save( _
ByVal stream As Stream, _
ByVal flags As DicomDataSetSaveFlags _
Output stream that will contain the saved data set.
Meta-header flags, Transfer Syntax flags, and other flags that indicate the file characteristics to use when saving the file.
If the Data Set was loaded from a file, the file characteristics were included when the file was loaded. If you wish to use these same characteristics, save the Data Set with flags set to DicomDataSetSaveFlags.None. If you wish to specify the file characteristics for saving the data set, set the characteristics using the possible values for flags.
For an example, refer to DicomDataSet.Load(Stream, DicomDataSetLoadFlags).