how to convert a dicom series into nifity image in memory with simpleitk?

Hi, there,
I need to read a dicom series by network into bytes array and convert to a nifity image in memory . I see the samples which convert to nifty by save into disk by specifing the file extension .nii or .nii.gz. Is there any way to get a nifity image withtout bothering writing into file system?

thanks in advances.
L,B

Hello @Li_Bin,

Please see this notebook section titled Reading from memory for discussion and code.