【发布时间】:2018-03-18 00:09:27
【问题描述】:
我正在使用带有 blob 存储和 Azure Functions 的 Azure。 我有很多文件,有时我想生成一个 zip,将其保存在存储中并生成一个链接。
由于我的 zip 可能很大(1 或 2 Go),我想“即时”执行此操作,这意味着在保存之前不使用所有内存:
stream on a zipentry
write to the blob
flush the stream
create next zipentry
我知道我必须在容器中使用方法 PutBlock(),但我缺少 ICSharpZipLib 和 BlobContainer 之间的代码。
有人知道吗?
【问题讨论】:
-
这个案例可能对你有帮助:stackoverflow.com/questions/18852389/…
-
谢谢。我见过这个问题,但我希望存在其他一些技术,比如在 zip 流中写入会写入 blob 流(不知道我是否清楚这个概念)
标签: azure stream zip azure-blob-storage