Help - Byte [] to String

2005-03-09 Thread Sanjeev Srivastava
Hi All Can anybody tell me how to convert this Byte [] to String.. byte[] buf = x509certificate.getPublicKey().getEncoded(); Please help Thanks, Sanjeev Send instant messages to your online friends http://uk.messenger.yahoo.com

Re:OT Help - Byte [] to String

2005-03-09 Thread Parsons Technical Services
String cert = String(buf); http://java.sun.com/j2se/1.4.2/docs/api/index.html And look up the String class Doug - Original Message - From: Sanjeev Srivastava [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, March 09, 2005 9:35 PM Subject: Help - Byte

Re: Help - Byte [] to String

2005-03-09 Thread xue daoming
I think you can do as just below: byte[] buf = x509certificate.getPublicKey().getEncoded(); String s = new String(buf); On Thu, 10 Mar 2005 02:35:03 + (GMT), Sanjeev Srivastava [EMAIL PROTECTED] wrote: Hi All Can anybody tell me how to convert this Byte [] to String.. byte[] buf =