Can't return null byte with Response.BinaryWrite

  • Thread starter Thread starter Vitaly Sedov
  • Start date Start date
V

Vitaly Sedov

Hello!

I'm trying return binary data using ASPX page:

Response.ContentType = "application/octet-stream";
Response.BinaryWrite(new byte[] {0x05, 0x00, 0x05});

But I get only 05 05. So null byte doesn't return in response.

Any help would be greatly appreciated.

Vitaly Sedov
 
Back
Top