在内存中创建文本文件,然后使用Python上传到Azure Blob存储
因此,我想创建一个python函数,该函数可以创建一个可以将字符串或多个字符串传递到Azure Blob存储的inmemory文本文件。使用普通文本文件进行是一项新颖的任务,但是我似乎无法使用IO模块来实现它。
So I want to create a python function that creates an inmemory text file that I can pass a string, or multiple strings to and upload to azure blob storage. Doing it with a normal text file is a novel task, but I can't seem to get it happen using the io module.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请查看此 https://pypipi.org/project/project/azure-staroge-blob/ < /a>通过执行以下操作将文件上传到Azure Blob存储中。
您可以使用python轻松地将字符串传递到
upload_blob
方法:Please check out this https://pypi.org/project/azure-storage-blob/ which given in detail upload a file to azure blob storage by doing the following.
You can easily pass the string to
upload_blob
method using python as below: