Jan242012

How to Read all blob list from the Windows Azure Storage Containers

Read all Blob List Names from the Windows Azure Containers The Following snippets is used to read all the Blob list details from the azure containers and also we can avoid the transport connection error while reading the huge blob list. by the paging segment concept can able to read large no of blob list...      ///////// Getting Blobs List if it's below than 5000 ///////////   TextWriter tw = new StreamWriter ("d:/blob_thumblist.txt" ); int pagingCount = 1000; CloudStorageAccount storageAccount = CloudStorageAccount .Parse(ConfigurationSettings .AppSettings["CloudStorage" ].ToString()); CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); //Get...

Jan062012

How to Check Azure Blob List Exist or Not

Check Blob List Exist or Not use the following snippet to check whether the blob is Exist or not   public static bool Exists(this CloudBlob blob) { try { blob.FetchAttributes(); return true ; } catch (StorageClientException e) { if (e.ErrorCode == StorageErrorCode .ResourceNotFound) { return false ; } else { throw ; } } } ...

Pages 141234 »