pydicom.encaps.read_item

pydicom.encaps.read_item(fp: pydicom.filebase.DicomFileLike) Optional[bytes][source]

Read and return a single Item in the fragmented data stream.

Parameters

fp (filebase.DicomIO) – The file-like to read the item from.

Returns

The Item’s raw bytes.

Return type

bytes