Reading Excel file from azure Blob Storage in Worker role

الإجابة Reading Excel file from azure Blob Storage in Worker role

  • Friday, November 26, 2010 7:16 AM
     
     

    I am trying to read the excel file in Worker role. File is stored in the Azure Blob storage and one antry we have put into the message queue.

    Percularly I want to run OLEDB connection string as code for preccesing the excel data we have already implemented. Just we need to get the excel data from the Azure blob to sql dataset in the worker role page.

    Kindly assist If anyone has used such scenario.

    Thanks in Advance


    Raj

All Replies

  • Saturday, November 27, 2010 10:14 PM
     
     Answered

    Hello,

    I am not sure what kind of OLEDB connection string are you using to process Excel Data, that you have already implemented, but if it relies on Microsoft Office Interop Assemblies, I will disappoint you - that will not work in Windows Azure! There is no Office in Windows Azure.

    About getting files from BLOB to Worker role, you may check out this project:

    http://azurevideoconv.codeplex.com/

    It uses Blobs and Queues. First client uploads file to a Blob, then puts a message with the file name into Queue. The worker checks out the queue periodically and if message is found, the file from blob is being downloaded to the Worker role temporary storage.

    But, again, it will not work with any kind of Office Interop. The only way to manipulate Excel files in Windows Azure is: (1) the files must be Office 2007 or 2010 format AND (2) you have to use OpenXML SDK or any of its wrappers like OpenExcel

    Hope this helps!

    • Proposed As Answer by Anton StaykovMVP Saturday, November 27, 2010 10:15 PM
    • Marked As Answer by Raj.Gupta Wednesday, December 01, 2010 9:12 AM
    •  
  • Wednesday, December 01, 2010 9:16 AM
     
     

    Thanks Anton... I already implemented the logic with OpenXML.

    Manually I put the a excel file in the blob and have marked an entry in the message queue. working fine on VM as well.

    Now the big challenge left is to provide facility to the user to browse excel file from Silverlight application and put it to blob and make an entry in the message queue.

    Regards


    Raj
  • Friday, June 29, 2012 5:49 AM
     
     
    Please provide any one sample with windows azure blob storage.
    • Edited by KarthiVNR Friday, June 29, 2012 5:49 AM
    •