public string CheckBlobfromBlobStorage(string foldername, string blobfilename) { string isblobexists = "false"; try { CloudBlockBlob blockBlobReference = new CloudStorageAccount(new StorageCredentials(AccountName, AccountKey), true).CreateCloudBlobClient().GetContainerReference(ContainerName + "/" + foldername).GetBlockBlobReference(blobfilename); if (blockBlobReference.Exists()) { isblobexists = "true"; if (blockBlobReference.Properties.Length > 4500) { isblobexists = "true"; } else { isblobexists = "Blank"; } } else { isblobexists = "false"; } return(isblobexists); } catch (Exception ex) { return("false"); } }