문제

There is byte array: { 0, 0, 0, 0, 52, 246, 141, 6 }

It somehow represented as a string: AAAAADT4RyQ=

How to do it? What is the encoder?

도움이 되었습니까?

해결책

Looks like base64 encoding to me:

string base64 = Convert.ToBase64String(data);

That doesn't give quite the results you're expecting though - it gives AAAAADT2jQY=.

The base64 string you've given corresponds to { 0, 0, 0, 0, 52, 248, 71, 36 } - without more information about where this data is coming from, or how you got the expected value, it's impossible to explain the discrepancy.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top