tar archives

Hi,

I did some searching but I did not find what I was looking for. Can Orthanc currently store and/or retrieve studies that are in a .tar.gz format? We have another process that stores studies like that and has been doing so for some time.

Thanks!

Hello,

As of Orthanc 1.8.2, the Orthanc core only supports ZIP and gzip (not tar), but this is precisely the kind of tasks that can be solved by creating a Python plugin:
https://book.orthanc-server.com/plugins/python.html

The “tarfile” module does exactly what you are looking for:
https://docs.python.org/3/library/tarfile.html

To import/export “.tar.gz”, you would create two new endpoints by extending the REST API using “orthanc.RegisterRestCallback()”. Check out the link above to the Orthanc Book for many samples.

Sébastien-