Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 31531632 authored by Gabriel Landais's avatar Gabriel Landais
Browse files

dcm2txt only when inline

DICOM folder, same as for CAT setup



git-svn-id: https://scm.gforge.inria.fr/authscm/ycadoret/svn/gazelle/Maven/gazelle-proxy/trunk@35172 356b4b1a-1d2b-0410-8bf1-ffa24008f01e
parent f30a8d23
No related branches found
No related tags found
No related merge requests found
...@@ -165,7 +165,7 @@ public class MessageBean { ...@@ -165,7 +165,7 @@ public class MessageBean {
response.setHeader("Content-Disposition", "attachment;filename=\"" + message.getId() + "\""); response.setHeader("Content-Disposition", "attachment;filename=\"" + message.getId() + "\"");
} }
if (message.getChannelType().getDiscriminator().equals("DicomMessage")) { if (inline && message.getChannelType().getDiscriminator().equals("DicomMessage")) {
byte[] result = dicom2txt(messageStream); byte[] result = dicom2txt(messageStream);
response.setContentLength(result.length); response.setContentLength(result.length);
ByteArrayInputStream input = new ByteArrayInputStream(result); ByteArrayInputStream input = new ByteArrayInputStream(result);
...@@ -194,6 +194,7 @@ public class MessageBean { ...@@ -194,6 +194,7 @@ public class MessageBean {
facesContext.responseComplete(); facesContext.responseComplete();
} catch (Exception e) { } catch (Exception e) {
log.error("Failed to download file", e);
FacesMessages.instance().add(StatusMessage.Severity.ERROR, "Failed to download file", e); FacesMessages.instance().add(StatusMessage.Severity.ERROR, "Failed to download file", e);
} }
} }
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<cas.service>http://127.0.0.1:8080/proxy/</cas.service> <cas.service>http://127.0.0.1:8080/proxy/</cas.service>
<evsclient.url>http://gazelle.ihe.net/EVSClient/</evsclient.url> <evsclient.url>http://gazelle.ihe.net/EVSClient/</evsclient.url>
<storage.dicom>/tmp/DICOM</storage.dicom> <storage.dicom>/opt/proxy/DICOM</storage.dicom>
<skip.scm.metadata>true</skip.scm.metadata> <skip.scm.metadata>true</skip.scm.metadata>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment