Closed RobinFrcd closed 1 year ago
Thanks for reporting the issue @RobinFrcd and apologies for the delayed feedback.
I had a quick look and it appears there is a bug that prevents reading of the File Meta Information in the _check_file_format() method.
I think it should be
file_meta = read_file_meta_info(str(fp.name))
instead of
file_meta = read_file_meta_info(str(self._filename))
Could you try that?
I thought this through further. The name
property will not be set to a file path (because there is no file), so we will need an additional workaround. I will make a suggestion via your PR.
Hi, I'm trying to use
ImageFileReader
on aDicomBytesIO
(which inherits fromDicomFileLike
).But I'm getting the following traceback: