in backend-printing/helper/storage.py [0:0]
def _get_document_from_blob(self, message_content):
"""Get the document from the blob
Args:
message_content (dict): blob guid and url
"""
try:
blob_url, blob_guid = (
message_content["blob_url"],
message_content["blob_guid"],
)
blob_client = self.get_blob_client(blob_guid)
blob_client.from_blob_url(blob_url)
return blob_client.download_blob().readall()
except Exception as e:
raise e