# Blob Storage — Java SDK Quick Reference
> Condensed from **azure-storage-blob-java**. Full patterns (SAS tokens,
> streaming, lease management, parallel uploads, proxy config)
> in the **azure-storage-blob-java** plugin skill if installed.
## Install
```xml
com.azure
azure-storage-blob
12.33.0
com.azure
azure-identity
```
## Quick Start
```java
import com.azure.storage.blob.BlobServiceClientBuilder;
import com.azure.identity.DefaultAzureCredentialBuilder;
var serviceClient = new BlobServiceClientBuilder()
.endpoint("")
.credential(new DefaultAzureCredentialBuilder().build())
.buildClient();
```
## Best Practices
- Use DefaultAzureCredential for **local development only** — in production, use ManagedIdentityCredential. See [auth-best-practices.md](../auth-best-practices.md)
- Use `BinaryData.fromString()` for string uploads
- Use `createIfNotExists()` for idempotent container creation
- Use `BlobParallelUploadOptions` for large file uploads with headers/metadata
- Use `BlobInputStream`/`BlobOutputStream` for streaming large blobs
- Handle `BlobStorageException` — check `getStatusCode()` and `getErrorCode()`