title: Sitecore: GetMediaStream is always null
body: <p>I have files stored in my master and web databases (Sitecore).
  I need to read the content of the a selected file.
  This is the code I use:</p>
  
  <pre><code>MediaItem mediaItem = Sitecore.Context.Database.Items.GetItem(id);  
  if (mediaItem != null)  
  {  
      Stream stream = mediaItem.GetMediaStream();  
  }
  </code></pre>
  
  <p>stream is always null!
  I've tried this for several files.
  If I try to download the files, they do download successfully.</p>
  
  <p>I need to read the contents of the file.
  The mediaitem returns all the meta data (file name, extension etc) correctly.</p>
  
  <p>What could be the reason for this?</p>
  
  <p>I noticed that the following entry is present in the web.comfig file as well:</p>
  
  <pre><code>      &lt;getMediaStream&gt;
          &lt;processor type="Sitecore.Resources.Media.ThumbnailProcessor, Sitecore.Kernel"/&gt;
          &lt;processor type="Sitecore.Resources.Media.ResizeProcessor, Sitecore.Kernel"/&gt;
      &lt;processor type="Sitecore.Resources.Media.GrayscaleProcessor, Sitecore.Kernel"/&gt;
    &lt;/getMediaStream&gt;
  </code></pre>
  
  <p>I'm not sure if I need to add anything here.</p>