Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Byte Array to StringBuffer

807603Oct 25 2007 — edited Oct 25 2007
Hi Guys,
I am having a sticky problem with a type conversion and I hope you can help me out.

I want to convert variable of type byte [] [] to a StringBuffer without converting first to a string. The reason for this is I am using large stringbuffers and some early jdk versions cannot handle strings over 64K but StringBuffers will work fine. Is there any way even that I could take the byte array slice by slice and append to the Buffer until all data from the byte array has been appended? in a for loop maybe?

Any help or suggestions would be great!
Thanks,
JK
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 22 2007
Added on Oct 25 2007
2 comments
721 views