> + }
> +
> + /**
> + * Uploading a file over a network is an inherently fragile
> operation. Over thousands of files, especially in
> + * highly parallel jobs that tax upload bandwidth, a small percent
> of uploads are guaranteed to fail.
> + */
> + do {
> + System.out.println("Uploading " + file.getName() + " ; " +
> FileUtils.sizeOf(file));
> +
> + try {
> + blob = blobStore.get().blobBuilder(file.getName())
> + .payload(Payloads.newInputStreamPayload(new
> BufferedInputStream(new FileInputStream(file))))
> + .build();
> + } catch (FileNotFoundException e) {
> + e.printStackTrace();
> + return;
Just propagate this?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/69/files#r22695148