diff --git a/src/main/java/com/xebialabs/overthere/util/OverthereFileCopier.java b/src/main/java/com/xebialabs/overthere/util/OverthereFileCopier.java index 71cbd67d..12bec95a 100644 --- a/src/main/java/com/xebialabs/overthere/util/OverthereFileCopier.java +++ b/src/main/java/com/xebialabs/overthere/util/OverthereFileCopier.java @@ -22,6 +22,8 @@ */ package com.xebialabs.overthere.util; +import java.io.BufferedInputStream; +import java.io.BufferedOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; @@ -155,12 +157,12 @@ private static void copyFile(final OverthereFile srcFile, final OverthereFile ds ByteStreams.copy(new InputSupplier() { @Override public InputStream getInput() throws IOException { - return srcFile.getInputStream(); + return new BufferedInputStream(srcFile.getInputStream()); } }, new OutputSupplier() { @Override public OutputStream getOutput() throws IOException { - return dstFile.getOutputStream(); + return new BufferedOutputStream(dstFile.getOutputStream()); } }); } catch (IOException exc) {