0

I received to HTTP GET response as hexadecimal string data with socket in java. But I want to convert normal string to this data for HTML format. How can I make it ?

2
  • Dod you try to google it? Commented May 17, 2015 at 12:28
  • Yes, of course. But I didn't want to any library file. It makes with apache library. I thought maybe there is another way. Commented May 17, 2015 at 12:56

1 Answer 1

1
byte[] bytes = Hex.decodeHex(YourhexString .toCharArray());
String s=new String(bytes, "UTF-8");
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you Ahmad Alsanie. Is there any way without library ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.