Search code examples
azureasp.net-coreazure-storageazure-blob-storageazure-media-services

How can I copy an asset to a virtual folder


Since Media Services does not let us upload from stream and does not let us create virtual folder, I decided to upload my images and videos to blob containers structured with virtual folders.

Next we need to process images and videos with azure media services face redactor.

Therefore, we need to copy our blobs to azure media services as assets and then use face redactor and then we need to upload the result that are in the form of asset back to it's respective virtual folder.

The problem is that Azure media services do not let us upload asset directly to another container with a specific virtual path, or so I think that's the case.

How would one approach this situation?


Solution

  • Our .Net SDK does provide a few methods to upload from Stream (see the last UploadAsync overload near the bottom of this page).

    We don’t support a virtual directory structure in our Assets, though. As Bruce Chen has responded, you could use Azure Storage APIs to go back and forth between your blob container with virtual folders, and the blob container that holds the Azure Media Services Asset.