Author
can i transform the Byte array to a String ?
omar bili
Ranch Hand
Joined: Aug 13, 2004
Posts: 177
Hi can i transform the Byte array to a String ? plz tell me on how i can send a byte array using an printWriter and a BufferedReader . Thanks all
Tony Morris
Ranch Hand
Joined: Sep 24, 2003
Posts: 1608
posted Sep 21, 2004 04:15:00
0
byte[] b = ... String s = new String(b);
Tony Morris
Java Q&A (FAQ, Trivia)
omar bili
Ranch Hand
Joined: Aug 13, 2004
Posts: 177
Thx Tony ,can i do it the other way around? String -> byte[] coz i need to send the Byte[] as a String and Reconstruct it from this String Regards , Omar
Joyce Lee
Ranch Hand
Joined: Jul 11, 2003
Posts: 1392
Yes, you can. You can refer to String API for more info. Joyce [ September 21, 2004: Message edited by: Joyce Lee ]
subject: can i transform the Byte array to a String ?