Downloading the raw DCM file instead of preview

Is there a way to just get the raw DCM instance file instead of a PNG preview image?

This works fine:

curl http://localhost:8042/instances/03c9a57e-19836571-d4eefc16-2ad94243-9c8b63e2/preview >preview.png

I wonder if there is something like

curl http://localhost:8042/instances/03c9a57e-19836571-d4eefc16-2ad94243-9c8b63e2/raw >raw.dcm

Thanks,

Steve

I found the answer for this (by looking in the code), its:

curl http://localhost:8042/instances/03c9a57e-19836571-d4eefc16-2ad94243-9c8b63e2/file

It seems that it should be documented alongside preview.

Thanks for all your work!

Steve

Hi,

Thanks for this suggestion! The Orthanc Book has been expanded in this way:
http://book.orthanc-server.com/users/rest.html#downloading-images

Regards,
S├ębastien-

Thanks for updating the book, but I think you meant

$ curl -H 'Accept: image/jpeg' http://localhost:8042/instances/609665c0-c5198aa2-8632476b-a00e0de0-e9075d94/preview > Preview.jpeg

Instead of

$ curl -H 'Accept: image/jpeg' http://localhost:8042/instances/609665c0-c5198aa2-8632476b-a00e0de0-e9075d94/preview > Preview.png

Nice catch! This is now fixed:
http://book.orthanc-server.com/users/rest.html#downloading-images

Regards,
S├ębastien-