Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to Convert DataRow with Byte Array data to String?

Reply
Thread Tools

How to Convert DataRow with Byte Array data to String?

 
 
Paul W
Guest
Posts: n/a
 
      08-06-2004
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)
 
Reply With Quote
 
 
 
 
Bryant Hankins
Guest
Posts: n/a
 
      08-06-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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)



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert form byte[4] to Int32 while retaining the binary value of the byte array jeff@foundrymusic.com C++ 20 09-07-2009 08:54 PM
Cannot convert type 'object[]' to 'System.Data.DataRow' Paulo ASP .Net 2 05-27-2008 07:24 PM
How to convert a 4 byte character string to its equivalent 4 byte integer value? Polaris431 C Programming 8 12-04-2006 07:00 AM
convert byte[] to Byte[] Shane Wealti Java 5 06-13-2005 09:16 PM
Converting a Primative byte array to a Byte array object Kirby Java 3 10-08-2004 03:01 AM



Advertisments