c# - Uploading to Azure Media Services with sas url using rest api -
i followed guide https://azure.microsoft.com/en-us/documentation/articles/media-services-rest-upload-files/ , have gotten part have sas url (upload url). here im in doubt of im supposed do. followed link lead me azure storage services - whole other documentation specifying how authenticate requests , make canonicalized strings. have upload url - url created through many steps already. please tell me im supposed when have upload url , want upload media file? in advance, im kinda lost here.
if have sas url, need @ following rest api functions: put blob
, put block
, put block list
.
when using these rest api operations, things consider:
- your request url sas url.
- since you're using sas url, don't worry authorization header authorization information included in sas token (
sig
query string parameter). - you don't have include
x-ms-version
,x-ms-date
headers well. - don't forget include
x-ms-blob-type
header , make sure it's valueblockblob
.
in general, use put blob
operation if file size smaller. larger files, split file in chunks (known blocks
) , upload chunks using put block
operation. once chunks completed, call put block list
operation commit blob.
Comments
Post a Comment