Sitecore: GetMediaStream is always null
问题 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: MediaItem mediaItem = Sitecore.Context.Database.Items.GetItem(id); if (mediaItem != null) { Stream stream = mediaItem.GetMediaStream(); } stream is always null! I've tried this for several files. If I try to download the files, they do download successfully. I need to read the contents of the file. The mediaitem returns all the meta data (file name,