A while ago I had made a vb program to send packets and I was able to send the data exactly as I wanted it e.g
VB Code:
  1. Winsock1.SendData Chr(&H0) & Chr(&H1) & Chr(&H2)
and the data would appear as exactly that: 00 01 02

I now want to do the same thing with java but I havnt been able to find a way of doing this, does anyone know how?

Thanks in advance~