Help Me convert Ascii to Base64

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

    Help Me convert Ascii to Base64

    Hi Everyone,

    in my application i am interacting to a known server. i send a request and
    get a response from the server. i am using XML and HTTP here.

    part of the job is that the XYZ server is sending a image in the Ascii
    format using XML. ASCII is not useful for me to display the image. i need to
    convert it to BASE64 format... so i can go ahead and view the image. How do u
    convert ASCII to Base64 in C#.

    can someone help me on this one?
  • Wiktor Zychla

    #2
    Re: Help Me convert Ascii to Base64

    > part of the job is that the XYZ server is sending a image in the Ascii[color=blue]
    > format using XML. ASCII is not useful for me to display the image. i need
    > to
    > convert it to BASE64 format... so i can go ahead and view the image. How
    > do u
    > convert ASCII to Base64 in C#.
    >[/color]

    Convert.ToBase6 4String()
    Convert.FromBas e64String()

    Wiktor Zychla


    Comment

    • QWERTY

      #3
      Re: Help Me convert Ascii to Base64

      I think your server already send the image in Base64 encoded. what you
      want is to convert that back to binary. Use
      Convert.FromBas e64String();

      On Thu, 17 Mar 2005 05:31:03 -0800, VenuGopal
      <VenuGopal@disc ussions.microso ft.com> wrote:
      [color=blue]
      >Hi Everyone,
      >
      >in my application i am interacting to a known server. i send a request and
      >get a response from the server. i am using XML and HTTP here.
      >
      >part of the job is that the XYZ server is sending a image in the Ascii
      >format using XML. ASCII is not useful for me to display the image. i need to
      >convert it to BASE64 format... so i can go ahead and view the image. How do u
      >convert ASCII to Base64 in C#.
      >
      >can someone help me on this one?[/color]

      Comment

      Working...