Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Can't return null byte with Response.BinaryWrite

Reply
Thread Tools

Can't return null byte with Response.BinaryWrite

 
 
Vitaly Sedov
Guest
Posts: n/a
 
      02-14-2006
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: how to extend a byte[] array with a null byte? Tom McGlynn Java 4 04-18-2008 11:49 PM
Re: how to extend a byte[] array with a null byte? Tom McGlynn Java 2 04-18-2008 01:00 PM
Re: how to extend a byte[] array with a null byte? Patricia Shanahan Java 0 04-17-2008 06:47 PM
Why use "return (null);" instead of "return null;" ? Carl Java 21 08-24-2006 04:33 AM
"stringObj == null" vs "stringObj.equals(null)", for null check?? qazmlp1209@rediffmail.com Java 5 03-29-2006 10:37 PM



Advertisments