Issue : Unable to load a minimal-sized NIFTI file.
Fix : The reason for this is that, when compressing data imageData may not be as large as the headerOffset value for imageData.
If we compare the length of imageData with headerOffset, it will be less and will consider it to have insufficient data.
As a result, it will wait for the next chunk and return which keeps it waiting.
As a solution, we changed the order of finding pako inflators and compared that result with the headoffset.
Issue : Unable to load a minimal-sized NIFTI file.
Fix : The reason for this is that, when compressing data
imageData
may not be as large as theheaderOffset
value for imageData. If we compare the length of imageData with headerOffset, it will be less and will consider it to have insufficient data. As a result, it will wait for the next chunk and return which keeps it waiting.As a solution, we changed the order of finding
pako inflators
and compared that result with the headoffset.