'DeclarationPublic Overloads Sub Read( _ ByVal Stream As System.IO.Stream _ )
public void Read( System.IO.Stream Stream )
Parameters
- Stream
The Stream from which to read.
The Stream from which to read.
'DeclarationPublic Overloads Sub Read( _ ByVal Stream As System.IO.Stream _ )
public void Read( System.IO.Stream Stream )
The Stream from which to read.
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.
It is the caller's responsibility to position the stream correctly before calling this method - no rewind is done internally.
using (FileStream fs = new FileStream("Dataset.dcm", FileMode.Open, FileAccess.Read)) { DicomDataSet ds = new DicomDataSet(); ds.Read(fs); }