datagrid question

  • Thread starter Thread starter MS Newsgroups
  • Start date Start date
M

MS Newsgroups

Hi,

If i store a image in a sql 2000 database binary using the image data type,
Is it in someway possible to use a bound datagrid to have this image
displayed in the grid ?

Regards

Niclas
 
well you need to write an aspx page or a custom httphandler to fetch the
byte array from database and write that byte array using
Response.BinaryWrite to the output stream
yes you can bind display it using ItemTemplate, with <img or image control
embedded which calls your aspx or your custom handler with appropriate
parameters

http://aspalliance.com/articleViewer.aspx?aId=141&pId=-1

this article sort of shows you what i was going on about.
 
Back
Top