diff --git a/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java b/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java index f5b2ce295c..0206f018e3 100644 --- a/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java +++ b/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java @@ -199,7 +199,9 @@ public class FilesystemStorageStrategyImpl implements LocalStorageStrategy { if (payload.getRawContent() instanceof File) Files.copy((File) payload.getRawContent(), outputFile); else { - payload = Payloads.newPayload(ByteStreams.toByteArray(payload)); + if (!payload.isRepeatable()) { + payload = Payloads.newPayload(ByteStreams.toByteArray(payload)); + } Files.copy(payload, outputFile); } Payloads.calculateMD5(payload);