Results 1 to 4 of 4

Thread: Byte() to String

  1. #1

    Thread Starter
    Ya ya Baby!!!Me is Back
    Join Date
    Jul 2002
    Posts
    362

    Byte() to String

    How do I convert?

    Dim httpSend() As Byte = System.Text.ASCIIEncoding.ASCII.GetBytes("GET http://www.a.com/tos.txt" & vbCrLf)

    I need httpSend() into 1 String

  2. #2

    Thread Starter
    Ya ya Baby!!!Me is Back
    Join Date
    Jul 2002
    Posts
    362

    Re: Byte() to String

    Originally posted by Daok
    How do I convert?

    Dim httpSend() As Byte = System.Text.ASCIIEncoding.ASCII.GetBytes("GET http://www.a.com/tos.txt" & vbCrLf)

    I need httpSend() into 1 String

    How do I download a text if byte() to string is not possible?

  3. #3
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    Hi.

    Do you mean, how to convert it back to a string?

    If so, try this:

    VB Code:
    1. Dim S As String = System.Text.ASCIIEncoding.ASCII.GetString(httpSend)
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Check out the Convert namespace

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width