Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
text="PK\0\0\b\0���F����\0\0^\a\0\0\0\b[Content_Types].xml �(�\0\0\0\0\0\0"


UtilitiesServices objUtilitiesServices = new UtilitiesServices();
     // get storage
     Microsoft.WindowsAzure.StorageCredentialsAccountAndKey creds = new Microsoft.WindowsAzure.StorageCredentialsAccountAndKey(objUtilitiesServices.ListSettings().AzureAccount, objUtilitiesServices.ListSettings().AzureKey);
     Microsoft.WindowsAzure.StorageClient.CloudBlobClient blobStorage = new Microsoft.WindowsAzure.StorageClient.CloudBlobClient(objUtilitiesServices.ListSettings().AzureSiteURL, creds);

     // get blob container
     Microsoft.WindowsAzure.StorageClient.CloudBlobContainer blobContainer = blobStorage.GetContainerReference(containerName);

     // get blob data
     Microsoft.WindowsAzure.StorageClient.CloudBlob cloudBlob = blobContainer.GetPageBlobReference(fileName);
     string text = cloudBlob.DownloadText();
Posted
Comments
Mehdi Gholam 1-Jul-15 1:01am    
Looks like a zip file header, you are getting a binary file and trying to show it as text.
satheeshkumar chinnadurai 1-Jul-15 1:08am    
That File was docment so i need to read a inside word document can help me sir?
Mehdi Gholam 1-Jul-15 1:26am    
A word document has structure, so you need to read the inside of with a library that understands that structure.
satheeshkumar chinnadurai 1-Jul-15 1:29am    
Hi Sir you Know any idea? please share me
Richard MacCutchan 1-Jul-15 4:00am    
You can use the Word.Interop namespace or the OpenOffice SDK. Google will find the details for you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900