DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSet Class / ReadJson Method
The Stream to read from
Example

In This Topic
    ReadJson Method (DicomDataSet)
    In This Topic
    Read DICOM data from a Json Stream
    Syntax
    'Declaration
     
    
    Public Sub ReadJson( _
       ByVal Stream As System.IO.Stream _
    ) 
    public void ReadJson( 
       System.IO.Stream Stream
    )

    Parameters

    Stream
    The Stream to read from
    Remarks
    The Json data must be compliant with the Native DICOM Model outlined in the DICOM Part 19 (Application Hosting), with modifications as defined in supplement 163 to allow bulk data
    Example
    DicomDataSet ds = new DicomDataSet();
    using (FileStream fs = new FileStream("Dataset.json", FileMode.Open, FileAccess.Read))
    {
        ds.ReadJson(fs);    
    }
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also