Create a SAFEARRAY[^] of VT_UI1 (a VT_UI1 is equivalent to a BYTE) and encapsulate it in a VARIANT[^] with a type of VT_UI1|VT_ARRAY. There's a sample of that in this page[^]. Search for VT_UI1 in that page to find the code!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p