How to bind a db image column (byte array) to a datagrid column?

J

Jim Hammond

How can one bind a database image column (the byte array - not the path) to
a datagrid column?

The closest thing I have found so far is this January 2002 statement by Dino
Esposito:
"Likewise, an image column could be adapted to load the bits, and not the
path, of the image directly from a blob database field. I'll reserve this
particular topic for a future column."


Thanks,

Jim
 
B

bruce barker

this is only supported by netscape, mozilla, opera and other html 4.0
complaint browsers, not IE.

<img src = 'data:image/gif;base64,<%#
System.Convert.ToBase64String(Container.DataItem) %>' >

-- bruce (sqlwork.com)
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top