Size of DICOM file is 10x what it should be when syncing via DICOMWeb

185 views
Skip to first unread message

Dominic Bou-Samra

unread,
Jul 17, 2019, 11:54:34 AM7/17/19
to Orthanc Users
Hi all.

I am testing the following setup:

  • Orthanc running locally.
  • Cloud syncing using the DICOMWeb and GoogleCloudPlatform plugins (both of which are amazing, and very easy to setup)
I am doing the following test:

  1. Upload via Orthanc Explorer, a DICOM file containing 1 study, and 1 instance, of size 28.4mb. 
  2. Send the entire patient via DICOMWeb to the Google Healthcare DICOMWeb server.
  3. Delete the patient from my local Orthanc server
  4. Go to the DICOMWeb client and browse the Google Healthcare server for that newly added patient.
  5. Retrieve via WADO-RS
  6. Go back to the Orthanc Explorer, and download the patient Zip.

When I decompress the Zip, the single DICOM file contained within is now 300mb. 

What is going on here? Is Orthanc doing this, or is Google Healthcare doing this?

Dom

Bryan Dearlove

unread,
Jul 17, 2019, 12:35:36 PM7/17/19
to Orthanc Users
Does Google Cloud uncompress it? Is the study JPEG Lossless for example before being sent to Google Cloud?

Dominic Bou-Samra

unread,
Jul 17, 2019, 12:59:35 PM7/17/19
to Orthanc Users
I will check this. Good suggestion

Dominic Bou-Samra

unread,
Jul 17, 2019, 1:15:10 PM7/17/19
to Orthanc Users
I see this mentioned in the docs, but I don't fully understand it.

Warning: The response's default transfer syntax is Little Endian Explicit. As a result, if the file was uploaded using a compressed transfer syntax, the returned object will be decompressed. This can negatively impact performance and lead to errors for transfer syntaxes that the Cloud Healthcare API doesn't support. To avoid these issues, and if the returned object's transfer syntax does not matter to your application, use the multipart/related; type="application/dicom"; transfer-syntax=* Accept Header.

https://cloud.google.com/healthcare/docs/dicom

Bryan Dearlove

unread,
Jul 18, 2019, 8:12:14 AM7/18/19
to Orthanc Users
Looks like by default it returns uncompressed but looks like you can force it to send compressed. 

Sébastien Jodogne

unread,
Jul 22, 2019, 5:36:41 AM7/22/19
to Orthanc Users
Hello,

This should be fixed by the following changeset that is pending in the mainline of the DICOMweb plugin:

This modification adds the "Accept" header, as pointed above by Dominic Bou-Samra.

Unfortunately, this change required by Google Cloud Platform breaks the compatibility with versions <= 1.0 of the DICOMweb server of Orthanc. We still need to find a way to achieve full compatibility.

HTH,
Sébastien-

Dominic Bou-Samra

unread,
Jul 22, 2019, 4:07:18 PM7/22/19
to Sébastien Jodogne, Orthanc Users
Thanks Sébastien. 

So I notice this is in master. Is there a release planned?

--
You received this message because you are subscribed to a topic in the Google Groups "Orthanc Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orthanc-users/w1Ekrsc6-U8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orthanc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orthanc-users/56f3c8a9-7a84-41ed-9d5c-00c98d2cde87%40googlegroups.com.

Sébastien Jodogne

unread,
Jul 23, 2019, 5:14:51 AM7/23/19
to Orthanc Users
No release is planned for the time being.

In the meantime, you'll have to build from sources or to use Linux Standard Base binaries:

Sébastien-

To unsubscribe from this group and all its topics, send an email to orthanc-users+unsubscribe@googlegroups.com.

Sébastien Jodogne

unread,
Mar 3, 2020, 10:38:58 AM3/3/20
to Orthanc Users
Hello,

We have finally settled on introducing a new client-related configuration option "HasWadoRsUniversalTransferSyntax" in the DICOMweb plugin.

As documented in the Orthanc Book, the default value of this option is "true", which avoids transcoding if used against the Google Cloud Platform:

Setting this option to "false" enables compatibility with versions <= 1.0 of the DICOMweb plugin for Orthanc.

A new official release of the plugin should soon be available.

HTH,
Sébastien-
Reply all
Reply to author
Forward
0 new messages