LEADTOOLS Medical (Leadtools.Dicom.Web assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.25
GetDicomData Method
See Also 
Leadtools.Dicom.Web Namespace > DicomWCFStreamer Class : GetDicomData Method



sopInstanceUID
The SOP Instance UID for the DICOM object to retrieve.
stripImage
true to return the DICOM object without the image data; otherwise false.
transferSyntax
An optional System.String to change the DICOM object Transfer Syntax. This value can be null or System.String.Empty.
qualityFactor
An optional number to specify the compression loss of the image,Set 0 for lossless compression. This value is valid only when the transferSyntax parameter is set to a Transfer Syntax the supports image compression.
extraData
User custom data.
sopInstanceUID
The SOP Instance UID for the DICOM object to retrieve.
stripImage
true to return the DICOM object without the image data; otherwise false.
transferSyntax
An optional System.String to change the DICOM object Transfer Syntax. This value can be null or System.String.Empty.
qualityFactor
An optional number to specify the compression loss of the image,Set 0 for lossless compression. This value is valid only when the transferSyntax parameter is set to a Transfer Syntax the supports image compression.
extraData
User custom data.
Retrieves a DICOM object buffer.

Syntax

Visual Basic (Declaration) 
Public Function GetDicomData( _
   ByVal sopInstanceUID As String, _
   ByVal stripImage As Boolean, _
   ByVal transferSyntax As String, _
   ByVal qualityFactor As Integer, _
   ByVal extraData As String _
) As Byte()
Visual Basic (Usage)Copy Code
Dim instance As DicomWCFStreamer
Dim sopInstanceUID As String
Dim stripImage As Boolean
Dim transferSyntax As String
Dim qualityFactor As Integer
Dim extraData As String
Dim value() As Byte
 
value = instance.GetDicomData(sopInstanceUID, stripImage, transferSyntax, qualityFactor, extraData)
C# 
public byte[] GetDicomData( 
   string sopInstanceUID,
   bool stripImage,
   string transferSyntax,
   int qualityFactor,
   string extraData
)
C++/CLI 
public:
array<byte>^ GetDicomData( 
   String^ sopInstanceUID,
   bool stripImage,
   String^ transferSyntax,
   int qualityFactor,
   String^ extraData
) 

Parameters

sopInstanceUID
The SOP Instance UID for the DICOM object to retrieve.
stripImage
true to return the DICOM object without the image data; otherwise false.
transferSyntax
An optional System.String to change the DICOM object Transfer Syntax. This value can be null or System.String.Empty.
qualityFactor
An optional number to specify the compression loss of the image,Set 0 for lossless compression. This value is valid only when the transferSyntax parameter is set to a Transfer Syntax the supports image compression.
extraData
User custom data.

Return Value

An Array of System.Byte representing the requested DICOM object buffer.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also