cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT ! store and retrieve binary data type

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

no....it is not unmatched quotes....

Former Member
0 Kudos

HI

I think earlier they were unmatched and now you have edited it..

Let me see now wat is the problem..

Avinash