Within literal strings, all ASCII characters, 0-255, (00-FF hex) are allowed.
You will likely need to convert your binary into Hexadecimal.
100010001000101010000010100100001101100010000000101111001111101111010010111111110000000011011100110100101000000000000000100000000000000000000000100000001000000000000000110000000000000011000100110000001100000011000000110010001100000011000000110000001100010000000000000000000000000000000000000000000000000000000000000000000000000000000000
Would be translated to something like this:
88 8a 82 90 d8 80 bc fb d2 ff 00 dc d2 80 00 80 00 00 80 80 00 c0 00 c4 c0 c0 c0 c8 c0 c0 c0 c4 00 00 00 00 00 00 00 00 00 00
You are correct in assuming the content needs to be ASCII, but it will use hex notation. The confusing part about this is we often use hex (i.e. \x1B) in JavaScript. This would be hex "looking" characters which will be interpreted into actual hex by the printer.
Your code *may* look like this (just a sample, I haven't checked syntax):
applet.append("b10,20,D,c26,r26,\" 888A8290D880BCFBD2FF00DCD28000800000808000C000C4C0C0C0C8C0C0C0C400000000000000000000 \"\n");
This is the same method used for inserting images, so I think sending the data in this form will get you the best results.
-Tres