Re: binary image

Discussion in 'ASP .Net' started by Steve C. Orr [MVP, MCSD], Sep 22, 2004.

  1. Kirby is right. You need a special page (or even better yet, an HTTP
    Module) that only outputs the image.
    Then in the main page you simply provide an image control that has its
    ImageURL property set the the URL of that image output page.

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://Steve.Orr.net


    "Mike" <> wrote in message
    news:...
    > I'm getting an image from the database in binary format using
    > response.binaryWrite("image"). I'm trying to use this as a user control to
    > be used on several pages. The problem i'm having is when i include this
    > control on a page it writes the entire image on the page and overlays
    > everything else on the page, Datagrid, labels, etc. How can I put this
    > image
    > in an img tag or datalist or something so i can specify where it should
    > reside on the web page?
    >
    > thx
    Steve C. Orr [MVP, MCSD], Sep 22, 2004
    #1
    1. Advertising

  2. Steve C. Orr [MVP, MCSD]

    Kirby Turner Guest

    HttpModule. I didn't think of that. I'm going to play with that idea
    for one of my existing applications.

    -KIRBY

    On Wed, 22 Sep 2004 12:47:54 -0700, "Steve C. Orr [MVP, MCSD]"
    <> wrote:

    >Kirby is right. You need a special page (or even better yet, an HTTP
    >Module) that only outputs the image.
    >Then in the main page you simply provide an image control that has its
    >ImageURL property set the the URL of that image output page.
    Kirby Turner, Sep 22, 2004
    #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. Fangs
    Replies:
    3
    Views:
    9,737
    darshana
    Oct 26, 2008
  2. Denise Smith
    Replies:
    2
    Views:
    638
    Denise Smith
    Nov 22, 2003
  3. Marc Schellens
    Replies:
    8
    Views:
    2,969
    John Harrison
    Jul 15, 2003
  4. Laszlo Zsolt Nagy
    Replies:
    1
    Views:
    1,237
    Kartic
    Jan 26, 2005
  5. Jack
    Replies:
    2
    Views:
    196
    John W. Krahn
    Jan 25, 2008
Loading...

Share This Page