comparison Samples/Dcm4Che/src/main/java/Main.java @ 15:b69bc09e2969

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 26 Oct 2023 13:51:32 +0200
parents 6b9433432ee0
children 1c407ba1d311
comparison
equal deleted inserted replaced
14:0dc05fe76bd5 15:b69bc09e2969
43 String[] regularExpressionGroups, 43 String[] regularExpressionGroups,
44 Map<String, String> headers, 44 Map<String, String> headers,
45 Map<String, String> getParameters, 45 Map<String, String> getParameters,
46 byte[] body) { 46 byte[] body) {
47 if (method != HttpMethod.POST) { 47 if (method != HttpMethod.POST) {
48 output.sendMethodNotAllowed("POST"); 48 output.sendMethodNotAllowed("POST"); // Answer with HTTP status 405
49 } else { 49 } else {
50 ByteArrayInputStream stream = new ByteArrayInputStream(body); 50 ByteArrayInputStream stream = new ByteArrayInputStream(body);
51 51
52 try (DicomInputStream din = new DicomInputStream(stream)) { 52 try (DicomInputStream din = new DicomInputStream(stream)) {
53 Attributes dataset = din.readDataset(); 53 Attributes dataset = din.readDataset();