> +         .contentLength(payload.size())
> +         .build();
> +   String key = blobstore.putBlob(containerName, blob);
> +
> +   // when you need access to glacier specific features,
> +   // use the provider context
> +   GlacierClient client = context.unwrapApi(GlacierClient.class);
> +
> +   JobRequest archiveRetrievalJobRequest = 
> ArchiveRetrievalJobRequest.builder()
> +         .archiveId(key)
> +         .description("retrieval job")
> +         .build();
> +   String jobId = client.initiateJob(containerName, 
> archiveRetrievalJobRequest);
> +
> +   // Retrieve output when the job is done
> +   Payload result = client.getJobOutput(containerName, jobId);

Can you extract the `InputStream` to a `byte[]` for completeness?

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

Reply via email to