title: Accessing data of a file from Azure blob storage to a variable
body: <p>I want to access data of a file from Azure blob storage to a variable.</p>
  
  <p>The below code which I am using reads data of a file from Azure blob storage to a local file. I want to read it into a variable. Is it possible to do it?</p>
  
  <pre><code>from azure.storage.blob import BlockBlobService, PublicAccess
  
  accountName='user123'
  accountKey='Pass@12345'
  CONTAINER_NAME='development'
  blobName='4567/dummyFile.txt'
  file_path='C:\\Users\\Sam\\Desktop\\testFile.txt' # local file in which the content from blob will be written
  
  
  block_blob_service = BlockBlobService(account_name=accountName, account_key=accountKey)
  
  # to access content from azure blob storage to local file
  block_blob_service.get_blob_to_path(CONTAINER_NAME,blobName,file_path)
  </code></pre>