Read OLE Object field to Image ?

Discussion in 'ASP .Net' started by Sandi, Nov 5, 2003.

  1. Sandi

    Sandi Guest

    I have a simple problem:
    I have an Access database (images.mdb) that has 2 columns: one is the id of
    the picture (an integer) and one (column named picture) is a field of type
    OLE Object which contains an image (it can store jpg, bmp, gif, but I don't
    know what image is stored inside).
    I want to retrieve the picture stored in the database and identified by a
    given id and display it in a web page (.aspx).
    I write in Visual C#, but it does not matter, VB answers are just as
    wellcome.
    My problem is that this OLE Object field does not contain just the raw array
    of bytes that form the image. So I can not just read the array of bytes and
    output it to the browser.
    no, it contains some extra information about the type of the file stored
    (which would be good to know so I can know what kind of image it is). but I
    don't know how to get this information.
    I also don't know how to separate this information from the actual image.
    Does anyone know how to solve this ?
    Sandi, Nov 5, 2003
    #1
    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. Sandi
    Replies:
    3
    Views:
    1,760
    Natty Gur
    Nov 6, 2003
  2. Sandi

    Read OLE Object field to Image ?

    Sandi, Nov 5, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    10,368
    Kevin Spencer
    Nov 6, 2003
  3. Patrick.O.Ige

    Ole ole

    Patrick.O.Ige, Jul 16, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    491
    Patrick.O.Ige
    Jul 16, 2006
  4. Drew Pihera
    Replies:
    0
    Views:
    640
    Drew Pihera
    Feb 4, 2004
  5. Lance Hoffmeyer
    Replies:
    0
    Views:
    238
    Lance Hoffmeyer
    Nov 17, 2003
Loading...

Share This Page