How to decrypt data of a zip file downloaded from a blob storage using Python?

Peter 26 Reputation points

Hello everyone,

I download a zip file from a Azure Blob Storage using this code:

blob_client_instance = blob_service_client_instance.get_blob_client(  
        "container_name", "", snapshot=None)  
blob_data = blob_client_instance.download_blob()  
data = blob_data.readall()  

The output of data is bytes type, which is not readable at all. How can I use the downloaded zip file? Or is there a way how I can store the zip file locally immediately without using the readall() function?

I'd appreciate any help.


Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,625 questions
0 comments No comments
{count} vote

Accepted answer
  1. SaiKishor-MSFT 17,221 Reputation points

    @Peter Are you able to unzip the file using any apps/tools and read it? Is it any different than a regular zip file? Please let me know. Thanks!

0 additional answers

Sort by: Most helpful