Help Me convert Ascii to Base64

G

Guest

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?
 
W

Wiktor Zychla

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

Convert.ToBase64String()
Convert.FromBase64String()

Wiktor Zychla
 
Q

QWERTY

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top