Skip to content
Permalink
Browse files
Fixing the bug of hard coded swift streaming file issue
  • Loading branch information
DImuthuUpe committed May 7, 2022
1 parent 4a8e4f7 commit 9033376277104c8f312f5dd2f06ba1a2d24f07f2
Showing 1 changed file with 2 additions and 2 deletions.
@@ -126,14 +126,14 @@ public void downloadChunk(int chunkId, long startByte, long endByte, String down

InputStream inputStream = swiftObject.getPayload().openStream();

File targetFile = new File("/tmp/targetFile.tmp");
File targetFile = new File(downloadFile);

java.nio.file.Files.copy(
inputStream,
targetFile.toPath(),
StandardCopyOption.REPLACE_EXISTING);

IOUtils.closeQuietly(inputStream);
inputStream.close();
}

@Override

0 comments on commit 9033376

Please sign in to comment.