Hello,
You can use System.Text.Encoding.ASCII.GetString method to get string a
ASCII encoded string. see System.Text.Encoding class in MSDN for more
details.
HTH. Cheers.
Maqsood Ahmed [MCP,C#]
Kolachi Advanced Technologies
http://www.kolachi.net
Peter Litsegard - 25 May 2005 14:41 GMT
Hi Maqsood!
Thanks for your suggestion but I've tried that approach earlier with no
avail. Let me give you some more information:
When calling the webservice I get the following response (most of the
response removed for clarity):
<text>H4sIAAAAAAAAAM1Y23LbOBJ9nlTlH1B........</text>
As you can see the content of the base64 encoded bytestream contains a
base64 representation of the actual text. When I use your suggestion I get a
string alright but it is impossible to read. I think the problem is that the
.GetString method doesn't work with base64 encoded byte arrays.
Thanks again!
/Peter
> Hello,
> You can use System.Text.Encoding.ASCII.GetString method to get string a
[quoted text clipped - 7 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***