Converting binary characters to something jQuery can use
<p>I’m using the <a href="http://msdn.microsoft.com/en-us/library/system.web.httpresponse.binarywrite.aspx" rel="nofollow">BinaryWrite</a> method of the HttpResponse class to fetch a web page. </p>

<p>Something similar to the example…</p>

<pre><code>FileStream MyFileStream;
long FileSize;

MyFileStream = new FileStream("APage.html", FileMode.Open);
FileSize = MyFileStream.Length;

byte[] Buffer = new byte[(int)FileSize];
MyFileStream.Read(Buffer, 0, (int)FileSize);
MyFileStream.Close();

Response.BinaryWrite(Buffer);
</code></pre>

<p>I’m then using the jQuery ajax method to get that response. But I’m having trouble doing anything with it - so if I had…</p>

<pre><code>$.ajax({
    type: "GET",
    url: "GetUrl.Proxy",
    data: { url: 'http://www.example.org/test.html' },
    success: function(data) {
        $('iframe').contents().find('html body').html(data.toString());
    },
    error: function(XMLHttpRequest, textStatus, errorThrown) {
    alert(errorThrown);
    }
 });
</code></pre>

<p>This returns a stream of binary characters, what I want is something that jQuery can use to set a html element.</p>
