String'i byteArray'e dönüştürmek ..
Mevcut bir string'i byteArray'e döştürmek için aşağıdaki fonksiyonu kullanılabilir.
Public Shared Function StrToByteArray(str As String) As Byte()
Dim enc new As System.Text.ASCIIEncoding
Return encoding.GetBytes(str)
End Function 'StrToByteArray
Public Shared Function StrToByteArray(str As String) As Byte()
Dim enc new As System.Text.ASCIIEncoding
Return encoding.GetBytes(str)
End Function 'StrToByteArray
Yorumlar