【发布时间】:2020-10-28 12:14:50
【问题描述】:
我愿意实施一种延迟加载方法来加载存储在azure存储帐户内的“images”文件夹中的图像。
我的 flutter 应用中有一个容器,每当用户向下滚动底部时,都会根据最新(时间戳)从存储中加载 10 张新图像。
我查看了从以下位置检索到的样本:https://azuresdkdocs.blob.core.windows.net/$web/python/azure-storage-blob/12.0.0b5/index.html#id20
from azure.storage.blob.aio import ContainerClient
container = ContainerClient.from_connection_string(conn_str="my_connection_string", container_name="my_container")
blob_list = []
async for blob in container.list_blobs():
blob_list.append(blob)
print(blob_list)
但这不是我需要的。我正在寻找一种方法来发出 get 请求,该请求将在调用该函数时检索我的一组新图像..
感谢您的建议!
【问题讨论】:
标签: python azure containers lazy-loading azure-blob-storage