DicomObjects.NET Core Documentation
DicomObjects Namespace / DicomDataSetCollection Class / Read Method / Read(Stream) Method

The stream from which to read.




In This Topic
    Read(Stream) Method
    In This Topic
    Reads a DICOM file from a Stream
    Syntax
    'Declaration
     
    
    Public Overloads Function Read( _
       ByVal Stream As Stream _
    ) As DicomDataSet
    'Usage
     
    
    Dim instance As DicomDataSetCollection
    Dim Stream As Stream
    Dim value As DicomDataSet
     
    value = instance.Read(Stream)
    public DicomDataSet Read( 
       Stream Stream
    )
    public:
    DicomDataSet^ Read( 
       Stream^ Stream
    ) 

    Parameters

    Stream

    The stream from which to read.

    Return Value

    If successful, a DicomDataSet Object is returned, and is added to the appropriate collection. If unsuccessful, an appropriate error is thrown.
    Remarks

    This method can read streams in either official "Part10" format, with the 128 byte header, or unofficial "Part5" format, without a header. Detection of the type is automatic.

    The stream may have been written by the Write method or by other DICOM software.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also