Base64 encoding/decoding

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nly

    Base64 encoding/decoding

    What's the purpose of "Base64 encoding and decoding"?

    Thanks in advance!


  • Peter Rilling

    #2
    Re: Base64 encoding/decoding

    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" <nlyee2001@yaho o.com> wrote in message
    news:e3auYgD2FH A.3864@TK2MSFTN GP12.phx.gbl...[color=blue]
    > What's the purpose of "Base64 encoding and decoding"?
    >
    > Thanks in advance!
    >
    >[/color]


    Comment

    • Jon Skeet [C# MVP]

      #3
      Re: Base64 encoding/decoding

      nly <nlyee2001@yaho o.com> wrote:[color=blue]
      > What's the purpose of "Base64 encoding and decoding"?
      >
      > Thanks in advance![/color]

      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.

      --
      Jon Skeet - <skeet@pobox.co m>
      http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
      If replying to the group, please do not mail me too

      Comment

      • The Crow

        #4
        Re: Base64 encoding/decoding

        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.)


        Comment

        Working...