on 03-19-2007 8:26 AM
when i try to print out what i have input i getting the following result...
instead my message is "Testing 1",
i have ask ppl...to convert the byte to string..it is simply put Bytes.toString()
bean.getEmailId() -
>return String()
bean.getMessage() -
>return byte[]
//setMessage(byte[] bs)
//bean.getMessage() return String[]
outMailBean.setMessage(util.convertStringBufferToByteArr(bean.getMessages()));
System.err.println("emailId=" + bean.getEmailId()+
"msg:" + bean.getMessage().toString() );
emailId=52594 msg:[B@1499ca
msg suppose is "Testing 1" but return unreadable form...can anyone explain this
pls help..urgent
Message was edited by:
yzme yzme
Message was edited by:
yzme yzme
Message was edited by:
yzme yzme
Hi yzme
I think the quote are unmateched:
System.err.println("emailId=" + bean.getEmailId()+ "msg:" + bean.getMessage().toString() );
Try this...coz I think there was unmatched quotes..
Avinash
Plzz award points if it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.