When I try to copy and paste this audio url into my browser, the file cannot be found, as shown in the second image. However I can download the file as normal through azure interface, as can be seen at the bottom of the screenshots.
I also have images and they work completely fine and download the image when I type the url into the search bar so it has to be something to do with audio files.
Does anyone know why this is happening? I am needing to know, because I am using the URL in my code and it's obviously not working.
The page that gets displayed when the audio URL is typed in the search bar:
Member
6 Points
19 Posts
Azure Cannot find media file when typing URL into search bar
Mar 27, 2016 01:57 AM|Letmeregister|LINK
I am using Azure storage emulator.
When I try to copy and paste this audio url into my browser, the file cannot be found, as shown in the second image. However I can download the file as normal through azure interface, as can be seen at the bottom of the screenshots.
I also have images and they work completely fine and download the image when I type the url into the search bar so it has to be something to do with audio files.
Does anyone know why this is happening? I am needing to know, because I am using the URL in my code and it's obviously not working.
The page that gets displayed when the audio URL is typed in the search bar:
Working Images for comparison:
Member
6 Points
19 Posts
Re: Azure Cannot find media file when typing URL into search bar
Mar 27, 2016 02:39 PM|Letmeregister|LINK
Fixed it with
containerAudio.SetPermissions(new BlobContainerPermissions { PublicAccess = BlobContainerPublicAccessType.Blob });
Contributor
3325 Points
403 Posts
Re: Azure Cannot find media file when typing URL into search bar
Mar 30, 2016 06:00 AM|Jamobor yao - MSFT|LINK
Hi,
Thanks for sharing your solution. Please note, if you want to access your resource from internet, please set the blob as public resource. Else, please use SAS to share your resource, refer to https://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-shared-access-signature-part-1/ for more information about SAS.
Best Regards,
Jambor
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue.