如何将 Glide 库与 Azure Blob 容器一起使用?

How to use the Glide library with Azure Blob Container?

有什么方法可以使用 Glide 库在 azure 容器中下载图像。 我在容器中创建了虚拟文件夹,是否可以访问整个文件夹。

谢谢

感谢帮助!

Is there any way to download images inside azure container using Glide library.

据我所知,我们可以通过 load(url) 方法通过 Glide 加载图像。在 azure 中,我们可以在 Azure 容器上设置 Public 仅对 blob 的读取权限 完全 public 读取权限 让它可访问。参考this article for more information about how to manage read access to containers. If you need to set azure container as No public read access, we can try to use SAS.

I have created virtual folder inside container is it possible to access tha whole folder.

A​​zure blob 不支持目录结构。所有 blob 都列在一个容器下。但是,Azure blob 存储支持 blob 名称中的斜线(“/”)。如果要下载整个文件夹文件。您需要使用文件夹名称进行过滤,然后下载每个文件。