Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.5k views
in Technique[技术] by (71.8m points)

请问这种格式的字符串是十六进制还是什么呢?在node中,如何将它转化为base64呢?

image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

从你给出的图形看,文件内容显示是以普通文本在显示,并不是16进制数据显示。
不过很多乱码之类应该是文件以文本显示中有很多不可显示的字符内容。
BASE64编码可以编码一切数据,只是需要用相应的工具,按char数据流的方式读取数据而已。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...