You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When retrieving a DICOM instance (via WADO-RS retrieve instance), is it possible to obtain the size of the DICOM file, without having to stream the entire thing?
For instance, I have a local dcm4chee server, and if I run code like this:
It would be very helpful to know either the DICOM file size, or the number of bytes that will be streamed, before streaming (or after only streaming the header). I don't see a Content-Length in result.headers. Is there another way to know how large the DICOM file is (or how much data will be streamed)? Maybe there is something in the DICOMweb standard I am missing?
For the imaging data commons server, the request does return the content length:
I can use the Content-Length, along with the multipart/related boundary size and streaming a little header information in, to figure out exactly how large (in bytes) the DICOM file is, without having to stream the whole thing.
Is there a way to get the DICOM file size in dcm4chee without streaming the whole thing?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When retrieving a DICOM instance (via WADO-RS retrieve instance), is it possible to obtain the size of the DICOM file, without having to stream the entire thing?
For instance, I have a local dcm4chee server, and if I run code like this:
It would be very helpful to know either the DICOM file size, or the number of bytes that will be streamed, before streaming (or after only streaming the header). I don't see a
Content-Length
inresult.headers
. Is there another way to know how large the DICOM file is (or how much data will be streamed)? Maybe there is something in the DICOMweb standard I am missing?For the imaging data commons server, the request does return the content length:
I can use the
Content-Length
, along with the multipart/related boundary size and streaming a little header information in, to figure out exactly how large (in bytes) the DICOM file is, without having to stream the whole thing.Is there a way to get the DICOM file size in dcm4chee without streaming the whole thing?
Beta Was this translation helpful? Give feedback.
All reactions