Fix multipart file resource close (#1683)
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -360,11 +360,13 @@ public class SoftwareModuleView extends TableView<MgmtSoftwareModule, Long> {
|
||||
|
||||
@Override
|
||||
public byte[] getBytes() throws IOException {
|
||||
return getInputStream().readAllBytes();
|
||||
try (final InputStream is = getInputStream()) {
|
||||
return is.readAllBytes();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public InputStream getInputStream() throws IOException {
|
||||
public InputStream getInputStream() {
|
||||
return fileBuffer.getInputStream();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user