Mentions légales du service

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

Delete DICOM file upon storing

git-svn-id: https://scm.gforge.inria.fr/authscm/ycadoret/svn/gazelle/Maven/gazelle-proxy/trunk@21477 356b4b1a-1d2b-0410-8bf1-ffa24008f01e
parent f2b40216
No related branches found
No related tags found
No related merge requests found
......@@ -56,8 +56,10 @@ public class DicomEventListener extends SameEventListener<DimseMessage> {
responderPort, channelId, convertProxySide(side));
if (dicom.getDataSet() != null) {
try {
byte[] bytes = getBytesFromFile(new File(dicom.getDataSet().getCanonicalPath()));
File file = new File(dicom.getDataSet().getCanonicalPath());
byte[] bytes = getBytesFromFile(file);
messageToStore.setMessageReceived(bytes);
file.delete();
} catch (IOException e) {
e.printStackTrace();
}
......
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