ToByteArray Method

Summary
Converts the data set to a byte array.
Syntax
C#
C++
public static byte[] ToByteArray( 
   this DicomDataSet dataset, 
   DicomDataSetSaveFlags saveFlags 
) 
vb[VB Syntax] 
<ExtensionAttribute()> 
Public Shared Function ToByteArray( _ 
   ByVal _dataset_ As DicomDataSet, _ 
   ByVal _saveFlags_ As DicomDataSetSaveFlags _ 
) As Byte() 
[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.2022.4.4
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.Common Assembly

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