Varbinary col in datatable

  • Thread starter Thread starter Aurin
  • Start date Start date
A

Aurin

Using SQL Server 2005, Visual Studio 2005 (8.0.50727.762) Framework 2.0.50727
SP1

I have a varbinary column in my database. I am trying to set the
DataColumn.DataType in the dataset designer to byte[] but it is not in the
selection list. I tried changing it in the xxxxx.Designer.cs file but of
course the changes were lost when the project was re-built. What is the
solution? Can I code

this.columnMissionStatusImage = new
global::System.Data.DataColumn("MissionStatusImage", typeof(byte[]), null,
global::System.Data.MappingType.Element);

in the .cs file? If so, what event do I put it in?
 
Aurin,

Image, you need some streaming to get it, if you don't know how than I have
a bunch of samples in VB so reply if you want one.

Cor
 
I had hoped to just get it in a sql statement and then be able to bind the
image of my PictureBox control to the column in the datatable. Is that not
feasible? And thanks for any samples that you can send me.
 
Back
Top