Converting from string to a binary array

A

Arlyn

I was wondering how I would convert String data into a binary. I want to
store and the binary data in a mssql table. When I retrieve the binary data
I want to convert it from a binary array to a string. Any help would
greatly be appreciated.
 
H

Herfried K. Wagner [MVP]

Arlyn said:
I was wondering how I would convert String data into a binary. I want to
store and the binary data in a mssql table. When I retrieve the binary
data I want to convert it from a binary array to a string.

'System.Text.Encoding.<encoding name>.{GetString, GetBytes}'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top