public static string GetMimeType(this System.IO.Stream stream)
        {
            if (stream.IsNull())
            {
                throw new ArgumentNullException("stream");
            }

            return(MimeTypeHelper.GetMimeType(stream.ToByteArray()));
        }