Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Dicom files from protected URL Weasis

278 views
Skip to first unread message

Max White

unread,
Jan 15, 2014, 1:05:04 PM1/15/14
to dcm...@googlegroups.com
Hi All

I am trying open remote files with Weasis using a own connector (jnlp) to load dicom files from a url in a protected directory (IHE application).

There is any chance to do this? Weasis needs load dicom files from url in web directory without authentication?

Second question: it's possible load jpg files with something like this?

<argument>
dicom:get -r http://myserver.com/app/securedirectory/IM-0001-0001.dcm
</argument>

15.01.2014 15:45:56.758 *INFO* [pool-3-thread-2] org.weasis.dicom.explorer.wado.LoadSeries Downloading series of Unknown [http://myserver.com/app/securedirectory/IM-0001-0001.dcm]
15.01.2014 15:45:56.787 *INFO* [AWT-EventQueue-2] org.weasis.dicom.explorer.DicomExplorer Add series: http://myserver.com/app/securedirectory/IM-0001-0001.dcm
CacheEntry[http://myserver.com/app/securedirectory/IM-0001-0001.dcm]: updateAvailable=false,lastModified=Wed Dec 31 21:00:00 BRT 1969,length=-1
15.01.2014 15:45:56.987 *INFO* [pool-4-thread-1] org.weasis.dicom.explorer.wado.LoadSeries End of downloading http://myserver.com/app/securedirectory/IM-0001-0001.dcm 
org.dcm4che2.io.DicomCodingException: Not a DICOM Stream
at org.dcm4che2.io.DicomInputStream.guessTransferSyntax(DicomInputStream.java)
at org.dcm4che2.io.DicomInputStream.<init>(DicomInputStream.java)
at org.dcm4che2.io.DicomInputStream.<init>(DicomInputStream.java)
at org.weasis.dicom.codec.DicomMediaIO.readMetaData(DicomMediaIO.java)
at org.weasis.dicom.codec.DicomMediaIO.getDicomObject(DicomMediaIO.java)
at org.weasis.dicom.codec.DicomMediaIO.isReadableDicom(DicomMediaIO.java)
at org.weasis.dicom.explorer.wado.LoadSeries$Download.call(LoadSeries.java)
at org.weasis.dicom.explorer.wado.LoadSeries$Download.call(LoadSeries.java)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
15.01.2014 15:45:57.062 *INFO* [AWT-EventQueue-2] org.weasis.dicom.explorer.DicomModel Remove Patient: Unknown
15.01.2014 15:45:57.062 *INF

Hrishikesh K.B

unread,
Dec 11, 2014, 3:42:07 AM12/11/14
to dcm...@googlegroups.com
Hello,

 Any updates on this question?

Nicolas Roduit

unread,
Dec 12, 2014, 2:01:04 AM12/12/14
to dcm...@googlegroups.com
The command above should work. The exception says that the magic number is not present in the DICOM file. In recent versions of Weasis a file without the dicom magic number but ending by .dcm must be read anyway.

This page shows how weasis-pacs-connector works. When there is no WADO server available you have two possibilities to load the images through the web:
1) Build the manifest as described at the end of the page mentioned above where the base url is defined in the wadoURL tag and then in DirectDownloadThumbnail and DirectDownloadFile. Then the url manifest must be pasted in parameters in jnlp: <argument>$dicom:get -w http://localhost:8080/manifest5446.xml</argument>

2) Build jnlp with url as main parameters: <argument>$dicom:get -r http://server/images/img1.dcm http://server/images/img2.dcm</argument>
  This method is not recommended. It should be used only when a very small number of images are loaded.
Reply all
Reply to author
Forward
0 new messages