Convert byte array to string

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

    Convert byte array to string

    How do you convert a byte array to a string?


  • Jay B. Harlow [MVP - Outlook]

    #2
    Re: Convert byte array to string

    Lou,
    You need to use the GetString method of the System.Text.Enc oding class.

    Note you need to retrieve the proper encoding object for how the byte array
    is encoded. The Encoding class has a number of common encodings as shared
    properties.

    Hope this helps
    Jay

    "Lou" <lou.garvin@com cast.net> wrote in message
    news:O4JOOxKeDH A.3204@TK2MSFTN GP11.phx.gbl...[color=blue]
    > How do you convert a byte array to a string?
    >
    >[/color]


    Comment

    Working...