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

Discussion in 'ASP .Net' started by Jim Hammond, Nov 26, 2003.

  1. Jim Hammond

    Jim Hammond Guest

    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
     
    Jim Hammond, Nov 26, 2003
    #1
    1. Advertising

  2. Jim Hammond

    bruce barker Guest

    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)


    "Jim Hammond" <> wrote in message
    news:...
    > 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
    >
    >
     
    bruce barker, Nov 26, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jim Hammond

    Can't bind image column in datagrid

    Jim Hammond, Nov 25, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    585
    Jim Hammond
    Nov 26, 2003
  2. =?Utf-8?B?RGVhc3Vu?=

    Conversion issue: Image>Byte array>Image

    =?Utf-8?B?RGVhc3Vu?=, Jul 14, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    914
    =?Utf-8?B?RGVhc3Vu?=
    Jul 14, 2005
  3. vishnu
    Replies:
    1
    Views:
    1,230
    Patrick.O.Ige
    Mar 25, 2006
  4. Bharat Bhushan

    Appending byte[] to another byte[] array

    Bharat Bhushan, Aug 5, 2003, in forum: Java
    Replies:
    15
    Views:
    40,321
    Roedy Green
    Aug 5, 2003
  5. Kirby
    Replies:
    3
    Views:
    658
    Kirby
    Oct 8, 2004
Loading...

Share This Page