Base64 encoding/decoding

  • Thread starter Thread starter nly
  • Start date Start date
Strings can contain characters that can interfere with processes.
Characters such as those below ASC(32) and the extended characters. This
can happen most often when dealing with Unicode since, if interpreted as
ASCII, and cause weird effects since Unicode is two types.

Anyway, BASE64 allows a string of bytes to be converted to a group of ASCII
alphanumeric characters.

You might want to encode when passing complex data such as saving in a
cookies or database or passing between systems.
 
nly said:
What's the purpose of "Base64 encoding and decoding"?

Thanks in advance!

It allows arbitrary binary data to be represented in purely ASCII
strings. This is very useful when you need to put some binary data into
a text format like XML.
 
you can convert any binary data (a byte[] array) to Base64String and
transport everywhere as text. (i use it usually in asp.net when encrypting
data.)
 
Back
Top