NetworkStream wont take in a stream of unknown length

fguihen

Well-known member
Joined
Nov 10, 2003
Messages
248
Location
Eire
im trying to read in a stream of unknown length through a networkStream, but the problem is with a network stream, you gota say how much data you want to read in. im afraid i dont know, and theres no method like stream.ReadToEnd(). i tried casting the network stream as a streamReader, which has a ReadToEnd() method, but it just throws an IO exception. any ideas how to get around this problem?
 
Back
Top