diff --git a/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/ResultStoreStream.java b/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/ResultStoreStream.java index d0ffc2f7..af8eb65b 100644 --- a/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/ResultStoreStream.java +++ b/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/ResultStoreStream.java @@ -84,7 +84,7 @@ public void close() { public void open() { try { - in = new BufferedInputStream(new FileInputStream(writer.getFile().getAbsolutePath()), 1024 * 1024 * 8); + in = new FileInputStream(writer.getFile().getAbsolutePath()); streamIsClosed = false; } catch (FileNotFoundException e) { throw new RuntimeException("temp file for result not found : " + writer.getFile().getAbsolutePath()); diff --git a/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/PicSureService.java b/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/PicSureService.java index ae4cca7c..b88c97f7 100644 --- a/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/PicSureService.java +++ b/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/PicSureService.java @@ -209,7 +209,7 @@ private QueryStatus convertToQueryStatus(AsyncResult entity) { return status; } - @PostMapping(value = "/query/{resourceQueryId}/result", produces = MediaType.TEXT_PLAIN_VALUE) + @PostMapping(value = "/query/{resourceQueryId}/result") public ResponseEntity queryResult(@PathVariable("resourceQueryId") UUID queryId, @RequestBody QueryRequest resultRequest) throws IOException { AsyncResult result = queryService.getResultFor(queryId.toString()); if (result == null) {