Review the code snippet before inserting it on your project.
Dim ms As New IO.MemoryStream(System.Text.Encoding.ASCII.GetBytes("Test String"))
With from Barcelona