Why can't i see/access my image from blob?
-
lundi 9 juillet 2012 06:12
Hi,
I have uploaded an image in to blob. And it stored as
' http://mystorageaccount.blob.core.windows.net/iu-container/107-org/Motivational-Quotes-02.jpg '
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
' http://mystorageaccount.blob.core.windows.net/iu-container/107-org '
Why this happens? Please give ur suggestions.
- Modifié Basant Nair lundi 9 juillet 2012 06:13
Toutes les réponses
-
lundi 9 juillet 2012 06:46
Hi,
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.
Javier.
-
lundi 9 juillet 2012 07:17
Hi Gomarilies.
I did it. But i can't access..
-
lundi 9 juillet 2012 07:19
Hi,
After setting the access to public
i checked to access my image with this.
http://mystorageaccount.blob.core.windows.net/iu-container/107-org/00402208.jpg
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>- Modifié Basant Nair lundi 9 juillet 2012 07:23
-
mardi 10 juillet 2012 01:35Modérateur
Hi,
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.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework
- Modifié Arwind - MSFTModerator mardi 10 juillet 2012 01:36
- Marqué comme réponse Arwind - MSFTModerator vendredi 13 juillet 2012 09:37

