Skip to content

The getting started sample demonstrates how to perform common tasks using the Azure Blob Service in Java including uploading a blob, CRUD operations, listing, as well as blob snapshot creation.

License

Notifications You must be signed in to change notification settings

MarkHe1222/storage-blob-java-getting-started

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

services platforms author
storage
java
sribhat-MSFT

Getting Started with Azure Blob Service in Java

Azure Blob Service Sample - Demonstrates how to perform common tasks using the Microsoft Azure Blob Service.

Blob storage stores unstructured data such as text, binary data, documents or media files. Blobs can be accessed from anywhere in the world via HTTP or HTTPS.

Note: If you don't have a Microsoft Azure subscription you can get a FREE trial account here

Running this sample

This sample can be run using either the Azure Storage Emulator, your Azure Storage account by updating the config.properties file with your "AccountName" and "Key", or using the Azure CLI.

To run the sample using the Storage Emulator (default option - Only available on Microsoft Windows OS):

  1. Start the Azure Storage Emulator by pressing the Start button or the Windows key and searching for it by typing "Azure Storage Emulator". Select it from the list of applications to start it.
  2. Set breakpoints and run the project.

To run the sample using the Storage Service:

  1. Open the config.properties file and comment out the connection string for the emulator "UseDevelopmentStorage=True" and uncomment the connection string for the storage service "AccountName=[]".
  2. Create a Storage Account through the Azure Portal and provide your account name and account key in the config.properties file.
  3. Set breakpoints and run the project.

To run the sample using Azure CLI:

  1. Install Azure CLI
  2. Login with Azure CLI
  3. Run node setup.js
  4. mvn compile exec:java
  5. Run node teardown.js

More information

What is a Storage Account

Getting Started with Blobs

Blob Service Concepts

Blob Service REST API

Blob Service Java API

Delegating Access with Shared Access Signatures

Storage Emulator

About

The getting started sample demonstrates how to perform common tasks using the Azure Blob Service in Java including uploading a blob, CRUD operations, listing, as well as blob snapshot creation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 91.0%
  • JavaScript 7.6%
  • Shell 1.4%