1

I am trying to access microsoft azure blob storage through codeigniter3 . I took files from codeigniter-azure and followed the process. I copied the files within the libraries folder to my application/libraries folder and I also added azure account_name,account_key in application/config/config.php file.

I written code in my controller.

$this->load->library('azure');
$blob_storage = $this->azure->get_blob_storage();
var_dump($blob_storage -> listBlobs("xxx-container-name-xxx"));

When I am executing code then I am getting error Call to a member function get_blob_storage() on null.

Nirdesh Kumawat
  • 386
  • 2
  • 16
  • 56

1 Answers1

1

If you just want to list blobs under a container or some directory, you can easily generate a SAS token and then use Azure blob rest APIs to do this. For how to generate a SAS token and call the rest API, just see this post. It does not involve any other libs I think it should be a workaround here.

Stanley Gong
  • 11,522
  • 1
  • 8
  • 16