Can't return null byte with Response.BinaryWrite

Discussion in 'ASP .Net' started by Vitaly Sedov, Feb 14, 2006.

  1. Vitaly Sedov

    Vitaly Sedov Guest

    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
    Vitaly Sedov, Feb 14, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Carl
    Replies:
    21
    Views:
    976
    Patricia Shanahan
    Aug 24, 2006
  2. Replies:
    1
    Views:
    821
  3. Tom McGlynn
    Replies:
    4
    Views:
    843
    Mark Space
    Apr 19, 2008
  4. Patricia Shanahan
    Replies:
    0
    Views:
    375
    Patricia Shanahan
    Apr 17, 2008
  5. Tom McGlynn
    Replies:
    2
    Views:
    396
    Andreas Leitgeb
    Apr 18, 2008
Loading...

Share This Page