How to download a DCM object in code

58 views
Skip to first unread message

joey michael ponce

unread,
May 31, 2016, 4:56:39 AM5/31/16
to dcm4che
Hello, 

I was wondering how to download a dcm object from dcm4che using PHP? using Wado requests i can open the dcm image, and adding 'download' in the anchor tag allows to download the image as a jpg. But I was wondering how to download the same image as a dcm object? 

Thank you


Dr Suresh Viswanathan

unread,
May 31, 2016, 2:57:30 PM5/31/16
to dcm...@googlegroups.com
If you look at the WADO specification, you can add switches to the http URL to specify DICOM (as well as PNG) as the file format.
--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at https://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/d/optout.

joey michael ponce

unread,
Jun 1, 2016, 6:06:18 AM6/1/16
to dcm4che
Thank you for the reply. When I tried the sample though, it downloaded the file as just a 'file'. but when i changed the downloaded file and added a .dcm extension, i was able to upload it back to dcm4che no problems. It might be on the php code now to add the extension.

Dr Suresh Viswanathan

unread,
Jun 1, 2016, 8:27:19 AM6/1/16
to dcm...@googlegroups.com
Incidentally the DICOM standard does not specify a file extension of dcm although many programs use it. You software should ideally be able to handle files by looking at the headder.

Suresh
Reply all
Reply to author
Forward
0 new messages