Varbinary col in datatable

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?
 
C

Cor Ligthert[MVP]

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
 
A

Aurin

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.
 

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

Top