> -BlobStoreContext context = ContextBuilder.newBuilder("aws-s3")
> - .credentials(identity, credential)
> - .buildView(BlobStoreContext.class);
> -BlobMap map = context.createBlobMap("adrian.photos");
> -
> -Blob blob = map.blobBuilder("sushi.jpg")
>
>
> - .payload(new File("sushi.jpg"))// or byte[]. InputStream,
> etc.
>
> - .contentDisposition("attachment; filename=sushi.jpg")
>
>
> - .contentType("image/jpeg")
>
>
> - .calculateMD5().build();
> -
> -map.put(blob.getName(), blob);
> -
> -context.close();
> -{% endhighlight %}
> +You can choose from two APIs: BlobStore and AsyncBlobStore.
While we're at it, should we be marking the AsyncBlobStore as deprecated, or at
least letting users know that the preferred way is to invoke BlobStore and
handle async calls yourself by using an executor?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/22/files#r7228288