This is not working:
byte[] tgtBytes = ...
Response.Write(tgtBytes);
This is not working:
byte[] tgtBytes = ...
Response.Write(tgtBytes);
If you want to output hex values
byte[] tgtBytes = ...
foreach (byte b in tgtBytes)
Response.Write("{0:2x}", b);
Or do you want to do;
Response.Write(System.Text.Encoding.ASCII.GetString(tgtBytes));
To convert the bytes to ASCII text and output a string.
Another Solution it might be useful :
Response.OutputStream.Write(tgtBytes, 0, tgtBytes.Length);