Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to have external sites access my dynamic image?

Reply
Thread Tools

How to have external sites access my dynamic image?

 
 
Mark B
Guest
Posts: n/a
 
      06-23-2008
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

 
Reply With Quote
 
 
 
 
densial
Guest
Posts: n/a
 
      06-23-2008
On Jun 23, 1:42 pm, "Mark B" <n...@none.com> 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

 
Reply With Quote
 
 
 
 
Mark B
Guest
Posts: n/a
 
      06-23-2008
What would the external webmasters need have have on their webpages?


"densial" <> wrote in message
news:40f3995b-6f2c-4435-bc54-...
> On Jun 23, 1:42 pm, "Mark B" <n...@none.com> 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
>


 
Reply With Quote
 
densial
Guest
Posts: n/a
 
      06-23-2008
On Jun 23, 3:43 pm, "Mark B" <n...@none.com> wrote:
> What would the external webmasters need have have on their webpages?
>
> "densial" <dens...@gmail.com> wrote in message
>
> news:40f3995b-6f2c-4435-bc54-...
>
> > On Jun 23, 1:42 pm, "Mark B" <n...@none.com> 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" />
 
Reply With Quote
 
Mark B
Guest
Posts: n/a
 
      06-23-2008
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\SalesIma ges\Badge.jpg")

%>



"densial" <> wrote in message
news:e42aef98-fe4d-45d4-84f5-...
> On Jun 23, 3:43 pm, "Mark B" <n...@none.com> wrote:
>> What would the external webmasters need have have on their webpages?
>>
>> "densial" <dens...@gmail.com> wrote in message
>>
>> news:40f3995b-6f2c-4435-bc54-...
>>
>> > On Jun 23, 1:42 pm, "Mark B" <n...@none.com> 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" />


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
using python to visit web sites and print the web sites image to files imx Python 10 03-14-2007 02:19 PM
Sites about web-sites ? Jasbird HTML 1 09-28-2006 06:21 PM
How do prevent sites to be loaded in other sites frames? Stefan Caliandro HTML 2 02-14-2005 06:05 PM
ISO: Web sites for images (pay sites preferred) Kevin Buchan ASP .Net 1 02-20-2004 09:34 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57