How to have external sites access my dynamic image?

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
 
D

densial

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
 
M

Mark B

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

%>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top