Convert from stream to string


April 11, 2009
There is no reason we shouldn't share our knowledge and experience. Please send me an article about IT, I will post it on my website, sure with a link back to your website. [More]

another tip »

Convert from stream to string

        public static string Stream2String(Stream inStream)
        {
            StreamReader sR = new StreamReader(inStream);
            string result = sR.ReadToEnd();
            return result;
        }

Share
Under Category: C#.NET Code
Article Tags: , ,
Leave a Reply