> -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.
AsyncBlobStore discussion out of scope of this commit.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/22/files#r8017622