> temp.addElement(intest[i].getBytes());
> temp.addElement(Byte.valueOf(middlerow));
Hi,
the problem is within the two lines shown above. First line inserts a
Byte[] into the temp vector, second line a single Byte. You need to add the
single Bytes to the vector like:
Byte []bytes = iterest[i].getBytes();
for( Byte aByte : bytes ) {
temp.addElement( aByte );
}
temp.addElement( Byte.valueOf( middlerow ) );
This would solve your classcastexception. I don't know if this solves your
business problem as well.
Best regards,
Jan Thomä
gbattine - 19 Jun 2006 09:14 GMT
Sintax error, 'for each' statements are only available if source level
is 5.0!
I have this error when i use your code.....
gbattine - 19 Jun 2006 09:14 GMT
Sintax error, 'for each' statements are only available if source level
is 5.0!
I have this error when i use your code.....
gbattine - 19 Jun 2006 09:25 GMT
Greaaaaaaaaaaaaaaaaat!!!!!!!!
I've solved my problem thanks to you!!!!!!!!!!!
I have an other question for you.
I have to develop the inverse function,that read this array of byte and
rebuild original format.
How can i see if the array of byte obtained is what i want?
That is how can i "test" if my precedent function getBytes has worked
fine?
Thanks....
gbattine - 19 Jun 2006 09:25 GMT
Greaaaaaaaaaaaaaaaaat!!!!!!!!
I've solved my problem thanks to you!!!!!!!!!!!
I have an other question for you.
I have to develop the inverse function,that read this array of byte and
rebuild original format.
How can i see if the array of byte obtained is what i want?
That is how can i "test" if my precedent function getBytes has worked
fine?
Thanks....