Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a limit for stream length in c#?

Tags:

c#

stream

I need to read a stream in this way:

using(HttpWebResponse response = (HttpWebResponse)request.getResponse())
{
  using(Stream answer = response.getResponseStream())
  {
    // waiting for a while to read next
  }
}

However, I don't know the stream length. According Fiddler the stream length is greater than 15,000,000 bytes.

Is there a length limit?

like image 771
auraham Avatar asked Oct 19 '25 07:10

auraham


1 Answers

Yes, it's 9,223,372,036,854,775,807 bytes (8,388,608 terrabytes)

like image 173
Kieren Johnstone Avatar answered Oct 21 '25 20:10

Kieren Johnstone