Dera friends.
how can I return a byte array from a function in Java.
Give me an example about a function that returns a byte array.
Thank you...
> how can I return a byte array from a function in Java.
> Give me an example about a function that returns a byte array.
public byte[] returnByteArray()
{
byte[] res = new byte[2];
res[0] = 1;
res[1] = 2;
return res;
}
Arne
> Dera friends.
> how can I return a byte array from a function in Java.
> Give me an example about a function that returns a byte array.
> Thank you...
byte[] returnsByteArray() {
byte[] byteArray = new byte[1000];
return byteArray;
}

Signature
Knute Johnson
email s/nospam/knute/
rxreyn3@gmail.com - 19 Nov 2006 02:06 GMT
And if you are doing some type of encoding, you can always use
http://jakarta.apache.org/commons/codec/
Ryan
> > Dera friends.
> > how can I return a byte array from a function in Java.
[quoted text clipped - 5 lines]
> return byteArray;
> }