C# .NET StreamReader() returning literal length of buffer as a string instead of actual stream data
I’m not even sure how to adequately describe this problem. In reading a stream, the text string I am building in chunks is just the literal length of the buffer, over and over again. string json = ""; context.Request.InputStream.Position = 0; using (StreamReader inputStream = new StreamReader(context.Request.InputStream)) { while (inputStream.Peek() >= 0) { char[] buffer… Read More C# .NET StreamReader() returning literal length of buffer as a string instead of actual stream data