running out of memory building massive string
<p>I have a program that converts a byte[] to a string of hex: </p>

<pre><code>byte[] bytes = File.ReadAllBytes(infile);

try
{
    StringBuilder sb = new StringBuilder(BitConverter.ToString(bytes)); // &lt;--exception 
    hexfield.Text = sb.ToString();  
}

catch(Exception e) 
{
    MessageBox.Show(e.ToString()); 
} 
</code></pre>

<p>This works fine for most case. But when I use a huge file, for example a 103 MB .flv video file it runs out of memory it throws an exception: </p>

<pre><code>System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.String.CtorCharArrayStartLength(Char[] value, Int32 startIndex, Int32 length)
at System.BitConverter.ToString(Byte[] value, Int32 startIndex, Int32 length)
at System.BitConverter.ToString(Byte[] value)
 at shex.shexx.hexfield_Dragrop(Object sender, DragEventArgs e)** 
</code></pre>
