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

How to Convert DataRow with Byte Array data to String?

P: n/a
How do I do this with: Option Strict On?

I know of the function System.Text.ASCIIEncoding.GetChars, but that
takes a Byte array not a DataRow. So with Option Strict On, how do I
take the byte array in my DataRow, convert it to Text and display it
on my web page without saving the info to disk inbetween?
MemoryStream? Give in and set Option Strict Off?

Thanks for any help,

Paul W (Using VB FW1.1)
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
How about using something like this:

Public Function ByteArrayToString(ByVal bytArray() As Byte) As String
Dim UTF8 As New UTF8Encoding()
Return UTF8.GetString(bytArray)
End Function
--
Hope this helps,
Bryant Hankins
Numinet Systems Inc.
http://www.numinet.com

"Paul W" <pb****@hotmail.com> wrote in message
news:97**************************@posting.google.c om...
How do I do this with: Option Strict On?

I know of the function System.Text.ASCIIEncoding.GetChars, but that
takes a Byte array not a DataRow. So with Option Strict On, how do I
take the byte array in my DataRow, convert it to Text and display it
on my web page without saving the info to disk inbetween?
MemoryStream? Give in and set Option Strict Off?

Thanks for any help,

Paul W (Using VB FW1.1)

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.