Accocrding this manual I shoud use thise pice of code:
from azure.storage.blob import ContentSettings
block_blob_service.create_block_blob_from_path(
'mycontainer',
'myblockblob',
'sunset.png',
content_settings=ContentSettings(content_type='image/png')
)
But got this error:
AttributeError: 'BlockBlobService' object has no attribute 'create_block_blob_from_path'
Tried from git
, as well as from pip
pip install azure-storage