pydicom.encaps.read_item

pydicom.encaps.read_item(fp: DicomFileLike) bytes | None[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