D
DaBeef
Hello
I am reading bytes from a stream but some are cmoing back corrupt.
Someonly return ex. 456.
byte[] byteobj= new byte[1024] ;
n = _fromGeneva.read(byteobj, 0 , 1024);
if(n >= 1024)
_errorMsg = new String(blah) ;
else
{
/* I want to put up to n in a new byte. How would I transfer up to n
efficienlty from byteobj into another byte so the data is not
corrupted. After say 456 i get null bytes */
}
Thanks so MUCH!!!! kinda new to dealing with bytes in java. Did it
years ago but alast i dont recall.
Thanks again
I am reading bytes from a stream but some are cmoing back corrupt.
Someonly return ex. 456.
byte[] byteobj= new byte[1024] ;
n = _fromGeneva.read(byteobj, 0 , 1024);
if(n >= 1024)
_errorMsg = new String(blah) ;
else
{
/* I want to put up to n in a new byte. How would I transfer up to n
efficienlty from byteobj into another byte so the data is not
corrupted. After say 456 i get null bytes */
}
Thanks so MUCH!!!! kinda new to dealing with bytes in java. Did it
years ago but alast i dont recall.
Thanks again