创建Post请求,在Http触发器azure函数中具有Azure blob文件的表单数据,给定文件的SAS、uri和令牌。
我有Http触发的天蓝色函数,在这个函数中我想调用API的post方法。在post请求中,我必须传递一个可用的文件到我的azure上,其中我有SAS、uri和token。我尝试了如下所示,但由于API端点期望post请求中的文件,它没有工作。
using (var client = new HttpClient())
{
using (var request = new HttpRequestMessage
{
我有一个container,名为test in azure storage。我想为此生成URL。它里面的文件目录如下所示:
test
-> annotate # This is a dir
-> file1.txt
-> file2.txt
-> images # This is a dir
-> file1.jpg
-> file2.jpg
我想要生成URL,以便当访问它时,我可以下载完整的容器test,包括它里面的所有文件和目录。现在我已经这样做了,但是在这种方法中,我只是使
我正在尝试将blob从一个存储帐户复制到另一个存储帐户,但是我收到错误信息
\xef\xbb\xbf<?xml version="1.0" encoding="utf-8"?><Error><Code>CannotVerifyCopySource</Code><Message>The source request body is too large and exceeds the maximum permissible limit (5000MB).\nRequestId:4bf1c1bc-511e-0
我是新的天青,刚刚创建了一个帐户的天青门户,以测试blob存储。
我正在用SDKfor.net来尝试使用SAS授权的示例。
BlobServiceClient blobServiceClient = new BlobServiceClient
(new Uri($"{blobUri}?{sasToken}"), null);
var containerClient = blobServiceClient.GetBlobContainerClient("testcontainer");
if (containe