How to have external sites access my dynamic image?

  • Thread starter Thread starter Mark B
  • Start date Start date
M

Mark B

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
 
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
 
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")

%>
 
Back
Top