title: How to read the content in a azure blob using azure function app
body: <p>I want to trigger the function app when a file is uploaded into the container and read the content in the file. I'm able to trigger the function app. But when i use Openread to read the content in the file i'm getting reference not found error. Below is the code which I have used to read the file and the binding.</p>
  
  <pre><code>#r "System.IO";
  
  using System;
  using System.Collections.Generic;
  using System.IO;
  using System.Configuration;
  using Microsoft.WindowsAzure.Storage;
  using Microsoft.WindowsAzure.Storage.Blob;
  using System.Xml;
  
  using Microsoft.Win32;
  using System.Net;
  using System.Linq;
  
  public static void Run(Stream myBlob, string name, TraceWriter log, string 
  inputBlob)
  {
      log.Info($"C# Blob trigger function Processed blob\n Name:{name} \n Size: 
      {myBlob.Length} Bytes");
      StreamReader reader = new StreamReader(inputBlob.OpenRead())
      {
          String oldContent = reader.ReadToEnd();
      }
  }
  </code></pre>
  
  <p>Bindings</p>
  
  <pre><code>{
      "bindings": [{
              "name": "myBlob",
              "type": "blobTrigger",
              "direction": "in",
              "path": "sample/{name}",
              "connection": "testforfunctionapp_STORAGE"
          }, {
              "type": "blob",
              "name": "inputBlob",
              "path": "sample/{name}",
              "connection": "testforfunctionapp_STORAGE",
              "direction": "in"
          }
      ],
      "disabled": false
  }
  </code></pre>
  
  <p>Could anyone please help on this?</p>
  
  <p>Thanks</p>