By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,572 Members | 1,730 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,572 IT Pros & Developers. It's quick & easy.

Converting from string to a binary array

P: n/a
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.
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Arlyn" <Ar***@ideapoint.ca> schrieb:
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}'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
Thanks that worked beautifully.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
"Arlyn" <Ar***@ideapoint.ca> schrieb:
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}'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.