Results 1 to 2 of 2

Thread: Convert a String to a Byte Array

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2007
    Posts
    6

    Convert a String to a Byte Array

    I am trying to convert a string into a byte array so it can be passed into function to compress the string. Is there anyway to accomplish this.

  2. #2
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: Convert a String to a Byte Array

    will this help

    Code:
         Dim ascEnd As New System.Text.ASCIIEncoding()
            Dim arr_byt() As Byte = ascEnd.GetBytes("MyString")
    __________________
    Rate the posts that helped you

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