Re: Converting Byte array into a String...

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Mikkel Andreasen (news_at_mikkel-andreasen.com)
Date: 03/24/04


Date: Wed, 24 Mar 2004 21:11:06 +0100


"NewBie" <anonymous@discussions.microsoft.com> skrev i en meddelelse
news:C5B6A8B2-1543-4529-BFE3-A69C95A8C860@microsoft.com...
> Hi,
>
> Via my UDP comms my PocketPC app is receiving a byte array that
corresponds to a string e.g "This is a message".
>
> How do I convert the Byte array into the equivalent of "This is a message"
? Its Ascii encoding used.

Have you tried the system.itconverter method?

Mikkel



Relevant Pages

  • Re: UDP Sending an array possible?
    ... Is it possible to send an array instead of a straight line of text? ... i can make a huge string and send it and then ... Is the receiving application a .NET application? ... Sockets break data up into packets, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Data type byte
    ... attempt to change the input buffer to a string (although not by changing the ... With multi dimensional array that can hold ... Also the receiving ... dimensional Byte Array is just one long string of memory. ...
    (microsoft.public.vb.general.discussion)
  • Re: unexpected characters in TCP-communication
    ... that i say in the first byte of the string - i want to send - the ... number of chars, that i will send? ... When sending an array of bytes, ... When receiving, the return value from the Receive command indicates ...
    (microsoft.public.dotnet.languages.csharp)
  • Converting Byte array into a String...
    ... Via my UDP comms my PocketPC app is receiving a byte array that corresponds to a string e.g "This is a message". ...
    (microsoft.public.dotnet.framework.compactframework)
  • Regex.Split... Can I do this??
    ... I know I can split a string into an array doing this: ... I am receiving some kind of data this way: ... Is there any way of using Regex to split it like the previous example?? ...
    (microsoft.public.dotnet.languages.vb)