azure - Renew Sas for BlockBlob with Upload from Stream -


tl;dr; renewing of sas needed when using cloudblockblob.openwrite()? if yes, how?

this follow-up-question to: upload big ziparchive-memorystream azure

i managed upload zip-archive blob using blob.openwrite():

cloudblockblob blob = container.getblockblobreference(sas); using (ziparchive zarch = new ziparchive(blob.openwrite(), ziparchivemode.create)) {     ziparchiveentry entry = zarch.createentry("bigfile", compressionlevel.optimal);     using (stream stream = entry.open())     {         savebigfiletostream(stream);     }    } 

the shared access signature supposed short-lived possible

my question is, how ensure sas not expire? upload validate sas once?

you need make sure sas doesn't expire during uploading, since uploading of 1 huge file azure blob service consist of many http requests authenticated individually.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -