If your actually writing the binary data to an input your going to run into problems unless your very very careful with the size of the data. Since HTML is a text format the browser will attempt to convert any binary data sent to it in an HTML page to text, which means that unless your binary data is able to be converted exactly to characters, then the binary data will join with the binary data that comes later, such as end quotes for your value= and so on.
It would probably be safer if you attempt to make your OCX zerofill the data somehow so that you have a number evenly divisible by 8. This way the browser can (hopefully) easily convert the data to ASCII characters.
The problem with this approach is that any of those characters could come out as a quote or something similar that wil disrupt your HTML. Another approach would be to write the binary data to a string as hexadecimal values, this will not only remove the risk of getting unwanted characters, but also any risk of uneven binary data, as you will need to zero fill somewhere in order to make everything evenly divisible.
-Tarwn
01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
Get better results for your questions: faq333-2924
Frequently Asked ASP Questions: faq333-3048