I am trying to upload an inputstream using below code
@PutMapping(value="/fileupload", consumes={MediaType.APPLICATION_OCTET_STREAM_VALUE}pubic ResponseEntity<String> uploadFIle(InputStream stream){ log.info("start"); IOUtils.copyLarge(stream,new FileOutputStream("c:\\tmp\\test.txt"); log.info("end");}
When i try to upload a large file ~1gb using above code , It takes more time, What can be changed to improve the performance