i have issue with reading my file in blob storage. My file is only text on it.
For example I want to get from my file information My file
{......}
Ant I want get in on variable like this s = {......}
I upload in blob storage string like this.
blob = BlobClient.from_connection_string(conn_str="DefaultEndpointsProtocol=https;AccountName=dasdasdas;AccountKey=sdf+sdfds+dfds==;EndpointSuffix=core.windows.net", container_name="XXXXXX", blob_name="XXXX.json")
store_items = 'swx'
data = str(store_items) + str(conversation_reference)
blob.upload_blob(data, overwrite=True)
Now i want get what value and use it.
I try something like this
block_blob_service = BlockBlobService(account_name='XXXXX', account_key='XXXXX+XXXXX+XXXXX==')
blob2 = block_blob_service.get_blob_to_text('XXXXX', 'XXXXX.json')
print (blob2.content)
But its not working, its seems old code. error
NameError: name 'BlockBlobService' is not defined
it need <= 2.10 version. I'm using 4.10 and i cant use 2.10 because my program will not work.
Any idea how to solve it?