convert from long to byte of array

J

jaffar

i wnat to convert like
Dim bytes() As Byte

bytes = CType(DB.DS.Tables("image").Rows(i).Item(1), Byte())

how can i convert in c#.net
 
T

Troy Dot Net

Dim bytes() As Byte
bytes = CType(DB.DS.Tables("image").Rows(i).Item(1), Byte())
how can i convert in c#.net

What is the source data type (that would be helpful to know :) In any case,
I suggest you look at the language-neutral System.Convert class for
converting normal data types to other normal data types.

Example:
string MyString = "true";
bool MyBool = Convert.ToBoolean(MyString);
// MyBool has the value of True.

For more information, search for the System.Convert class via MSDN.

Troy
 

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

Members online

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,371
Latest member
Brkaa

Latest Threads

Top