ToByteArray Method

Summary
Converts the data set to a byte array.
Syntax
C#
C++/CLI
public static byte[] ToByteArray( 
   this DicomDataSet dataset, 
   DicomDataSetSaveFlags saveFlags 
) 
[ExtensionAttribute()] 
public: 
static array<byte>^ ToByteArray(  
   DicomDataSet^ dataset, 
   DicomDataSetSaveFlags saveFlags 
)  

Parameters

dataset
The data set to save.

saveFlags
Specifies Meta-header flags, Transfer Syntax flags, and other flags that indicate the file characteristics to use when saving the file.

Return Value

A new byte array representing the original DICOM data set.

Requirements

Target Platforms

Help Version 22.0.2023.1.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.Common Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.