title: Download large file
body: <p>By downloading a file with <code>UnityEngine.WWW</code>, I get the error</p>
  
  <blockquote>
    <p>OverflowException: Number overflow.</p>
  </blockquote>
  
  <p>I found out the error is caused form the structure itself, because the byte-array has more bytes than int.MaxValue can allocate (~2GB).</p>
  
  <p>The error is fired by returning the array with <code>www.bytes</code>, which means, that the framework probably stores the array in on other way. </p>
  
  <p>How can I access the downloaded data in another way or is there an alternative for bigger files?</p>
  
  <pre><code>public IEnumerator downloadFile()
  {
      WWW www = new WWW(filesource);
  
      while(!www.isDone)
      {
          progress = www.progress;
          yield return null;
      }
  
      if(string.IsNullOrEmpty(www.error))
      {
          data = www.bytes; // &lt;- Errormessage fired here
      }
  }
  </code></pre>