Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   How to have external sites access my dynamic image? (http://www.velocityreviews.com/forums/t621729-how-to-have-external-sites-access-my-dynamic-image.html)

Mark B 06-23-2008 01:42 AM

How to have external sites access my dynamic image?
 
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


densial 06-23-2008 03:00 AM

Re: How to have external sites access my dynamic image?
 
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


Mark B 06-23-2008 03:43 AM

Re: How to have external sites access my dynamic image?
 
What would the external webmasters need have have on their webpages?


"densial" <densial@gmail.com> wrote in message
news:40f3995b-6f2c-4435-bc54-3a77b499fcb2@q27g2000prf.googlegroups.com...
> 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
>



densial 06-23-2008 04:34 AM

Re: How to have external sites access my dynamic image?
 
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-3a77b499fcb2@q27g2000prf.googlegroups.com...
>
> > 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" />

Mark B 06-23-2008 06:19 AM

Re: How to have external sites access my dynamic image?
 
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" <densial@gmail.com> wrote in message
news:e42aef98-fe4d-45d4-84f5-0418f75cbd9e@p25g2000pri.googlegroups.com...
> 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-3a77b499fcb2@q27g2000prf.googlegroups.com...
>>
>> > 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" />




All times are GMT. The time now is 07:23 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.