Fix/file stream azure blob (#6196)

pull/5928/head^2
Jyong 2 years ago committed by GitHub
parent 63e34e5227
commit 678ad6b7eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -38,9 +38,8 @@ class AzureStorage(BaseStorage):
def generate(filename: str = filename) -> Generator:
blob = client.get_blob_client(container=self.bucket_name, blob=filename)
blob_data = blob.download_blob()
for chunk in blob_data.chunks():
yield from chunk
return generate()
yield from blob_data.chunks()
return generate(filename)
def download(self, filename, target_filepath):
client = self._sync_client()

Loading…
Cancel
Save