Hi how to get or extract or convert a byte[] array from a vector......
i recieve a vector which contains byte[]...how get this byte[] array from vector
Printable View
Hi how to get or extract or convert a byte[] array from a vector......
i recieve a vector which contains byte[]...how get this byte[] array from vector
This will get the first item from the vector at index 0 (zero). You might want to make sure there is an index zero first.
Code :final Vector<byte[]> byteArrayVector = new Vector<byte[]>(); final byte[] myByteArray = byteArrayVector.get(0);
Oh and also, Vectors are old, you should use ArrayList really.
// Json