T
Tina
I need to create a datatable, in code, and put images into it (gifs and
jpg). I use code similar to that below to create the table but I'm not sure
how to get the image into the table....
dim mytable as new datatable
mytable.TableName = "ImageTable"
dim cols as DataColumnCollection
cols = mytable.columns
dim FileName as DataColumn
FileName = cols.Add("FileName", GetType(string))
dim FileImage as DataColumn
FileImage = cols.add("FileImage", GetType(image))
dim myrow as datarow
myrow = mytable.NewRow()
myrow("FileName") = "this is my Pic"
myrow("FileImage") = ..................
if my image is at c:\myPic.jpg, how do I get the image into
myrow("FileImage") ??
thanks,
T
jpg). I use code similar to that below to create the table but I'm not sure
how to get the image into the table....
dim mytable as new datatable
mytable.TableName = "ImageTable"
dim cols as DataColumnCollection
cols = mytable.columns
dim FileName as DataColumn
FileName = cols.Add("FileName", GetType(string))
dim FileImage as DataColumn
FileImage = cols.add("FileImage", GetType(image))
dim myrow as datarow
myrow = mytable.NewRow()
myrow("FileName") = "this is my Pic"
myrow("FileImage") = ..................
if my image is at c:\myPic.jpg, how do I get the image into
myrow("FileImage") ??
thanks,
T