You must Sign In to post a response.
  • Category: .NET

    convert system.byte[] to string

    hi friends

    i want to convert system.byte[] to string

    plse see my code below
    Dim c() As Byte
    Dim d,appnum As String

    appnum ="11250369"

    c = System.Text.Encoding.UTF8.GetBytes(appnum)
    d = Convert.ToString(c)

    response.wrire(d)
    response.end()


    if wil give output as system.byte[]
    but i need this output
    0000JlIYTqkhCPltcKnYCJQbWAh:11n0o9sj1
    for this 11250369 no.
  • #134500
    Hi,
    try like this

    string str = System.Text.Encoding.ASCII.GetString(c); //replace c with your byte array .

    Regards
    Pankaj

    Regards,
    Pankaj


This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.