cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Converting bytes to string

Former Member
0 Likes
529

Hi,

I have read an excel file and converted it into bytes.

Now if i want to to retrieve contents from these bytes , how should I do it?

Please help me out.

Thank You.

Accepted Solutions (0)

Answers (2)

Answers (2)

junwu
SAP Champion
SAP Champion
0 Likes

you need some java lib to parse the byte data.

google jexcel or poi

Former Member
0 Likes

check below code for converting array bytes to string.

String s = new String(bytes);

Former Member
0 Likes

Thank You...I got it done using properties file

Former Member
0 Likes

Hi,

You can read the byte array using the Buffered InputStream and typecast it to display on the screen while reading.

Former Member
0 Likes

Thank You...I got it done using properties file