LAUREL BRIDGE

Program Class

DICOM Connectivity Framework V3.4
This example shows several examples of using DCF to read and write DICOM Chapter 10 datasets to and from memory or file streams.
Inheritance Hierarchy

SystemObject
  LaurelBridge.DCFExamples.DicomStreamIOProgram

Namespace:  LaurelBridge.DCFExamples.DicomStreamIO
Assembly:  DicomStreamIO (in DicomStreamIO.exe) Version: DCF34 r13043 DCF_3_4_56_20220408 NetFramework
Syntax

C#
public class Program

The Program type exposes the following members.

Constructors

  NameDescription
Public methodProgram
Initializes a new instance of the Program class
Top
Methods

  NameDescription
Public methodStatic memberMain
Main entry point for DicomStreamIO.
Top
Remarks

Chapter 10 was originally designed as a format for DICOM files, but it is also used to perform non-DICOM transfers via web sockets, or may be wrapped by other protocols that use standard streams. Chapter 10 format contains the Group 2 File Meta Information tags that convey the SOP Class and Instance Uids, the Transfer Syntax of the encoded dataset, as well as other information.

In normal DICOM networking, the Group 2 tags are normally stripped, as they are not supposed to be a part of the messaging payload between DICOM entities. This example uses DicomFileInput and DicomFileOutput in combination with the DicomStreamReader and the DicomStreamWriter classes to demonstrate alternative ways to reading and writing Chapter 10 formatted data to io streams.

As of DCF 3.4.16, we also remove Group Lengths when writing to an DicomOutput as suggested by the DICOM standard. This example demonstrates how to disable this feature so that there are no differences between the input and output datasets. Note that DCF does not presently support writing correct group lengths except for Group 0 (Command) and Group 2 (FileMeta) groups which are handled automatically.

See Also

Reference

FileMetaTags
DicomSessionSettings.PreserveGroupLengths