azure-storage-blob-java

Manage Azure Blob Storage blobs with Java client patterns and SAS tokens.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-storage-blob-java-davidrrowley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-storage-blob-java
Source: https://github.com/davidrrowley/CortexYouV3/tree/main/.agents/skills/azure-storage-blob-java
Command: npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-storage-blob-java-davidrrowley

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies implementing reliable file and streaming storage operations for Java applications using the Azure Storage Blob SDK by consolidating client creation patterns, upload/download strategies, and common error handling guidance.

Core Features & Use Cases

  • Client creation patterns: guidance for BlobServiceClient, BlobContainerClient, and BlobClient using DefaultAzureCredential, SAS tokens, or connection strings.
  • Uploads and downloads: examples for BinaryData, file-based uploads, stream-based uploads, parallel uploads with options, conditional uploads, and download to file or stream.
  • Management and security: container lifecycle operations, listing and hierarchical listing, metadata and properties management, lease acquisition and renewal, blob copy operations, SAS token generation, and error handling for BlobStorageException.
  • Use Case: backend services that need to upload large files reliably, generate scoped SAS URLs for clients, stream data into blobs, and perform robust cleanup and metadata updates.

Quick Start

Use the azure-storage-blob-java skill to upload local-file.txt into container mycontainer using DefaultAzureCredential with overwrite enabled.

Frequently Asked Questions about azure-storage-blob-java

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upload a file to Azure Blob Storage using Java?

Generate a SAS token for Azure Blob Storage in Java by calling the generateSas method on a BlobClient or BlobContainerClient. This creates scoped, time-limited URLs allowing clients to securely download or upload blobs without sharing storage account keys.

How does streaming upload and download work for Azure blobs in Java?

Streaming upload and download in Java works by passing InputStream or OutputStream objects to the BlobClient methods. This allows you to handle large files or continuous data streams without loading the entire blob content into application memory.

Can I use DefaultAzureCredential with the Azure Blob Storage Java SDK?

Yes, you can use DefaultAzureCredential with the Azure Blob Storage Java SDK to authenticate BlobServiceClient, BlobContainerClient, and BlobClient instances. It simplifies credential management by automatically chaining environment, managed identity, and shared credential providers.

What is the best way to handle BlobStorageException errors in Java applications?

Handle BlobStorageException errors in Java by catching the exception during blob operations and inspecting its error code and message. This allows you to implement robust retry logic for transient failures or specific handling for access denied and container not found scenarios.

How do I manage blob leases and metadata in Azure Storage using Java?

Manage blob leases and metadata in Java by using BlobClient methods to acquire, renew, and break leases for exclusive write access. You can update blob properties and metadata using dedicated methods to maintain custom tags and system information.