ToByteArray Method

Summary

Converts the data set to a byte array.

Syntax
C#
VB
C++
public static byte[] ToByteArray( 
   this DicomDataSet dataset, 
   DicomDataSetSaveFlags saveFlags 
) 
<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 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.Common Assembly