09 Temmuz 2012 Pazartesi 06:12
I have uploaded an image in to blob. And it stored as
But when i try to access/see it its not visible.
But when i try to access via blob storage explorer i can see and access it what i uploaded.
where i get the same absolute url
Why this happens? Please give ur suggestions.
- Düzenleyen Basant Nair 09 Temmuz 2012 Pazartesi 06:13
09 Temmuz 2012 Pazartesi 06:46
As default, when creates a container, is private, so you can't access without a Shared Access Signature via REST. You can generate the signature or change the policy access of your container (to public) with Blob Storage Explorer.
09 Temmuz 2012 Pazartesi 07:17
I did it. But i can't access..
09 Temmuz 2012 Pazartesi 07:19
After setting the access to public
i checked to access my image with this.
but i get this error only.<Error><Code>BlobNotFound</Code><Message>The specified blob does not exist. RequestId:b6963d71-4ed0-48ef-bf92-3a146c0a8058 Time:2012-07-09T07:17:47.2101093Z</Message></Error>
- Düzenleyen Basant Nair 09 Temmuz 2012 Pazartesi 07:23
10 Temmuz 2012 Salı 01:35Moderatör
Can you make sure your Blob link is correct? I tried it at my side and find it works fine, if you upload image files via Azure Storage Explorer and make sure the blob container is public, copy the blob's AbsoluteUri from Storage Exploerer and paste it in Borwser Address bar to see the same error (Blob Not Found).
Would you like try to create a new public blob container to see if works.
Another thing is how do you change the existing private blob container to public? I find the Azure Storage Explorer can not set its Acessibility from Private to Public Container (Public to Private is OK), here is a link about how to do it via code:
CloudBlobContainer container = blobClient.GetContainerReference("mysascontainer"); container.CreateIfNotExist(); BlobContainerPermissions containerPermissions = new BlobContainerPermissions(); containerPermissions.PublicAccess = BlobContainerPublicAccessType.Container; container.SetPermissions(containerPermissions);
Hope this helps.