> +            if ((read = input.read(content)) == -1) {
> +               return null;
> +            }
> +         } catch (IOException e) {
> +            throw Throwables.propagate(e);
> +         }
> +
> +         return createPayload((content.length == read) ? content : 
> Arrays.copyOf(content, read));
> +      }
> +
> +      private Payload createPayload(byte[] content) {
> +         Payload payload = null;
> +
> +         if (content.length > 0) {
> +            payload = new ByteArrayPayload(content);
> +            ContentMetadata cm = 
> metaData.toBuilder().contentLength((long)content.length).contentMD5(null).build();

Is `.contentMD5(null)` required?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/192/files#r7291471

Reply via email to