如何在JAVA中将二进制数据转换为字符串格式? [英] How to convert binary data into string format in JAVA?

查看:422
本文介绍了如何在JAVA中将二进制数据转换为字符串格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我目前正在开发一个从PC内存中读取数据的应用程序。它正在工作,但输出是这样的:


(请参阅附件..)

Hi All,

I am currently developing an application that reads data from PC''s Memory. It is working but the output is something like this:

(Please see attached..)

推荐答案

它们是ASCII格式吗?

您可以将字节数组转换为Java格式的字符串。

检查此中的各种字符串构造函数链接


这可能会对你有所帮助。


问候

Dheeraj Joshi
Are they in ASCII format?
You can convert the byte array into String in Java.
Check the various string constructors in this link.

This may help you.

Regards
Dheeraj Joshi


你好Dheeraj Joshi,


我不知道他们的格式是什么,我怎么知道呢?

顺便说一句,我会检查你给的链接..


非常感谢。


Mark Tan
Hi Dheeraj Jos

I have no idea what are their format,how could i know it?
by the way, i''ll gonna check the link you gave..

Thanks a lot.

Mark Tan


我无法清楚地看到附件。你能在这里发布代码吗?


问候

Dheeraj Joshi
I can not see the attachment clearly. Can you post the code here?

Regards
Dheeraj Joshi


这篇关于如何在JAVA中将二进制数据转换为字符串格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆