How to have external sites access my dynamic image?

Discussion in 'ASP .Net' started by Mark B, Jun 23, 2008.

  1. Mark B

    Mark B Guest

    I have a on-the-fly created image that is something of a performance badge
    or emblem to reflect each salesperson's performance. The image includes
    their grade "A+" and their sales "650 K" embedded amongst our corporate
    logo. It also is a click-to-verify that takes the web user to the
    salesperson's sales detail page.

    I can get it displayed and working fine on our aspx pages because I can use
    the PageLoad event to call the code that makes the dynamic .jpg image.

    The question is, how can I allow other external sites to display this badge
    on their websites? If I just tell them to link to
    http://www.mysite.com/salesbadge/image001.jpg it doesn't a) Reflect the
    rating for salesperson 324 and b) Doesn't have a dynamically produced image
    rather a static one.

    TIA
    Mark B, Jun 23, 2008
    #1
    1. Advertising

  2. Mark B

    densial Guest

    On Jun 23, 1:42 pm, "Mark B" <> wrote:
    > I have a on-the-fly created image that is something of a performance badge
    > or emblem to reflect each salesperson's performance. The image includes
    > their grade "A+" and their sales "650 K" embedded amongst our corporate
    > logo. It also is a click-to-verify that takes the web user to the
    > salesperson's sales detail page.
    >
    > I can get it displayed and working fine on our aspx pages because I can use
    > the PageLoad event to call the code that makes the dynamic .jpg image.
    >
    > The question is, how can I allow other external sites to display this badge
    > on their websites? If I just tell them to link tohttp://www.mysite.com/salesbadge/image001.jpgit doesn't a) Reflect the
    > rating for salesperson 324 and b) Doesn't have a dynamically produced image
    > rather a static one.
    >
    > TIA


    first guess, off the top of my head, you will need to take the sales
    persons id in the querystring. use an aspx page, if you have the file
    on the filesystem you could use response.contenttype = "image/jpeg"
    and then response.transmitfile(filepath) to send it.

    I do something like this and save the file to filepath so I don;t need
    to regenerate it each time.

    hth
    densial, Jun 23, 2008
    #2
    1. Advertising

  3. Mark B

    Mark B Guest

    What would the external webmasters need have have on their webpages?


    "densial" <> wrote in message
    news:...
    > On Jun 23, 1:42 pm, "Mark B" <> wrote:
    >> I have a on-the-fly created image that is something of a performance
    >> badge
    >> or emblem to reflect each salesperson's performance. The image includes
    >> their grade "A+" and their sales "650 K" embedded amongst our corporate
    >> logo. It also is a click-to-verify that takes the web user to the
    >> salesperson's sales detail page.
    >>
    >> I can get it displayed and working fine on our aspx pages because I can
    >> use
    >> the PageLoad event to call the code that makes the dynamic .jpg image.
    >>
    >> The question is, how can I allow other external sites to display this
    >> badge
    >> on their websites? If I just tell them to link
    >> tohttp://www.mysite.com/salesbadge/image001.jpgit doesn't a) Reflect the
    >> rating for salesperson 324 and b) Doesn't have a dynamically produced
    >> image
    >> rather a static one.
    >>
    >> TIA

    >
    > first guess, off the top of my head, you will need to take the sales
    > persons id in the querystring. use an aspx page, if you have the file
    > on the filesystem you could use response.contenttype = "image/jpeg"
    > and then response.transmitfile(filepath) to send it.
    >
    > I do something like this and save the file to filepath so I don;t need
    > to regenerate it each time.
    >
    > hth
    >
    Mark B, Jun 23, 2008
    #3
  4. Mark B

    densial Guest

    On Jun 23, 3:43 pm, "Mark B" <> wrote:
    > What would the external webmasters need have have on their webpages?
    >
    > "densial" <> wrote in message
    >
    > news:...
    >
    > > On Jun 23, 1:42 pm, "Mark B" <> wrote:
    > >> I have a on-the-fly created image that is something of a performance
    > >> badge
    > >> or emblem to reflect each salesperson's performance. The image includes
    > >> their grade "A+" and their sales "650 K" embedded amongst our corporate
    > >> logo. It also is a click-to-verify that takes the web user to the
    > >> salesperson's sales detail page.

    >
    > >> I can get it displayed and working fine on our aspx pages because I can
    > >> use
    > >> the PageLoad event to call the code that makes the dynamic .jpg image.

    >
    > >> The question is, how can I allow other external sites to display this
    > >> badge
    > >> on their websites? If I just tell them to link
    > >> tohttp://www.mysite.com/salesbadge/image001.jpgitdoesn't a) Reflect the
    > >> rating for salesperson 324 and b) Doesn't have a dynamically produced
    > >> image
    > >> rather a static one.

    >
    > >> TIA

    >
    > > first guess, off the top of my head, you will need to take the sales
    > > persons id in the querystring. use an aspx page, if you have the file
    > > on the filesystem you could use response.contenttype = "image/jpeg"
    > > and then response.transmitfile(filepath) to send it.

    >
    > > I do something like this and save the file to filepath so I don;t need
    > > to regenerate it each time.

    >
    > > hth


    pretty much this...

    <img src="http://mysite.com/theimage.aspx?spid=3" />
    densial, Jun 23, 2008
    #4
  5. Mark B

    Mark B Guest

    I see. So the link doesn't return a html page but rather simply a jpeg
    image.

    So my_image.aspx would be:

    <html>
    <%

    fCreateImage(Request.QueryString(SalesID))
    Response.ContentType = "image/jpeg"
    Response.transmitfile("C:\MyWebs\SalesWeb\SalesImages\Badge.jpg")

    %>



    "densial" <> wrote in message
    news:...
    > On Jun 23, 3:43 pm, "Mark B" <> wrote:
    >> What would the external webmasters need have have on their webpages?
    >>
    >> "densial" <> wrote in message
    >>
    >> news:...
    >>
    >> > On Jun 23, 1:42 pm, "Mark B" <> wrote:
    >> >> I have a on-the-fly created image that is something of a performance
    >> >> badge
    >> >> or emblem to reflect each salesperson's performance. The image
    >> >> includes
    >> >> their grade "A+" and their sales "650 K" embedded amongst our
    >> >> corporate
    >> >> logo. It also is a click-to-verify that takes the web user to the
    >> >> salesperson's sales detail page.

    >>
    >> >> I can get it displayed and working fine on our aspx pages because I
    >> >> can
    >> >> use
    >> >> the PageLoad event to call the code that makes the dynamic .jpg image.

    >>
    >> >> The question is, how can I allow other external sites to display this
    >> >> badge
    >> >> on their websites? If I just tell them to link
    >> >> tohttp://www.mysite.com/salesbadge/image001.jpgitdoesn't a) Reflect
    >> >> the
    >> >> rating for salesperson 324 and b) Doesn't have a dynamically produced
    >> >> image
    >> >> rather a static one.

    >>
    >> >> TIA

    >>
    >> > first guess, off the top of my head, you will need to take the sales
    >> > persons id in the querystring. use an aspx page, if you have the file
    >> > on the filesystem you could use response.contenttype = "image/jpeg"
    >> > and then response.transmitfile(filepath) to send it.

    >>
    >> > I do something like this and save the file to filepath so I don;t need
    >> > to regenerate it each time.

    >>
    >> > hth

    >
    > pretty much this...
    >
    > <img src="http://mysite.com/theimage.aspx?spid=3" />
    Mark B, Jun 23, 2008
    #5
    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. Kevin Buchan
    Replies:
    1
    Views:
    466
    Eric Lawrence [MSFT]
    Feb 20, 2004
  2. Stefan Caliandro
    Replies:
    2
    Views:
    617
    Beauregard T. Shagnasty
    Feb 14, 2005
  3. Jasbird

    Sites about web-sites ?

    Jasbird, Sep 12, 2006, in forum: HTML
    Replies:
    1
    Views:
    393
  4. imx
    Replies:
    10
    Views:
    794
  5. Yitzak

    2 sites or not 2 sites

    Yitzak, Mar 7, 2009, in forum: ASP .Net
    Replies:
    5
    Views:
    436
    Andrew Morton
    Mar 10, 2009
Loading...

Share This Page