Skip to content
This repository has been archived by the owner. It is now read-only.
Upload, download and delete Azure blob files
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs parameter changed Jul 9, 2018
src parameter changed Jul 9, 2018
.gitignore updated Jun 27, 2018
LICENSE Create LICENSE Jun 16, 2018
README.md v1.1.1 released Jul 8, 2018
azure-blob-explorer.iml azure-storage update to version 8 Jul 8, 2018
pom.xml Bump azure-storage-blob from 10.1.0 to 11.0.1 May 14, 2019

README.md

Azure Blob Explorer

A simple and easy to use library to upload, download and delete all your assets/files/folders to Azure blob containers.

Instillation

Via Maven

<dependency>
  <groupId>com.gollahalli.azure</groupId>
  <artifactId>azure-blob-explorer</artifactId>
  <version>1.1.1</version>
</dependency>

Usage

To upload a file or a folder:

import com.gollahalli.azure.AzureBlobUpload;

AzureBlobUpload azureBlobUpload = new AzureBlobUpload("account name", "account key", "container name");

// Single file.
azureBlobUpload.uploadFromFile("path/to/file.txt");

// Folder
azureBlobUpload.uploadFromFolder("path/to/folder/");

To Download a file or a folder:

import com.gollahalli.azure.AzureBlobDownload;

AzureBlobDownload azureBlobDownload = new AzureBlobDownload("account name", "account key", "container name");

// Single file.
azureBlobDownload.downloadFile("fileName.txt", "path/to/download/");

// Folder
azureBlobUpload.downloadFolder("./folderName/", "path/to/download/");

To delete a file, folder or a container:

AzureBlobDelete blobDelete = new AzureBlobDelete("account name", "account key", "container name");

// Delete file.
blobDelete.deleteFile("blobName/fileName.txt");

// Delete a blob folder and its content
blobDelete.deleteBlob("blobName/BlobToDelete/");

// Delete container
blobDelete.deleteContainer();
You can’t perform that action at this time.