Convert from stream to string


April 11, 2009
Twitter's a new exciting social media. And guess what, I'm quite active on it. Follow me on Twitter to get the latest links and updates.

another tip »

Convert from stream to string

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

Some more useful articles for you

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