2

We have a flash app running on our web site (which is a Azure site). It needs to access images in blob storage. I had to create a crossdomain.xml file programatically so there won't be any issues with Flash getting cross domain restrictions.

But for some reason, I cannot check to see if that file exists, so every time the page loads it re-creates the file. Every example I look for talks about checking to see if the blob storage container exists, I just want to find this file.

AndyMan
  • 115
  • 1
  • 12

2 Answers2

1

If your blob container is public and you know the name of the blob, you can manually send a HTTP request for the blob (e.g. http://myaccount.blob.core.windows.net/mycontainer/myblob) and check the result. If the result is 404 (Not Found) error, that means the blob does not exist. However if the blob container is private, then what you could do is try and fetch the properties of the blob either by using REST API or Storage Client library. A 404 error would mean that the blob does not exist. However you would need to think about your storage account credentials as you mentioned it is a Flash application and you may not want to store the credentials in the application itself.

Gaurav Mantri
  • 128,066
  • 12
  • 206
  • 241
0

Is a tool like Cerebrata's Cloud Storage Studio something that would help? You can browse your Azure storage contents to see if that blob exists, and also see if your application is continuously creating new ones.

The Developer Edition is free.

David Hoerster
  • 28,421
  • 8
  • 67
  • 102
  • Is this something that you can use programatically? I'm not concerned if the container exists, I'm more interested in seeing if a file exits. – AndyMan Jul 27 '11 at 20:35
  • I don't think there's an API with the product - it's an Windows EXE. But you can inspect containers to see if a file is there. So you could inspect your blob container to see if there is a crossdomain.xml file present. – David Hoerster Jul 27 '11 at 20:38