I have an Orthanc setup having MySQL DB as its backend and orthanc is registered with the PACS. I have a requirement to download the DICOM images from this orthanc server using spark. As per orthanc documentation only ways to download DICOM images is via the orthanc UI or via the API, the images that I have on PACS could go over 1 GB which makes API bit unreliable.
The other method I tried is to retrieve from the table in MySQL server,"StorageArea" is the name of the table, which has a content column which holds the entire DICOM image in the HEX format.I tired querying this table via spark and convert the column into string but all I got was garbage value.The HEX value should ideally decode to a DICOM image.
Need help to get the DICOM image using spark.
Thanks in advance.