def _store_document_to_blob()

in backend-printing/helper/storage.py [0:0]


    def _store_document_to_blob(self, blob_guid, message):
        """Store the document to the blob

        Args:
            blob_guid (string): container guid
            document (dict): document to store
        """
        try:
            blob_client = self.get_blob_client(blob_guid)
            blob_client.upload_blob(data=json.dumps(message).encode("utf-8"))
            return blob_client.url
        except Exception as e:
            raise e