.NETGURU
image generator
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-drawing' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Ryan Trudelle-Schwarz (VIP)
-- Moved from [aspngarchitecture] to [ngfx-drawing] by Charles M. Carroll <Click here to reveal e-mail address> --I want to create images within a page and have them show up within thepage. So my image is a control and I'm setting properties of thatcontrol.So, what methods can I use to output the image? I assume I'll need touse a <img /> tag linked to an output page but how should I get theimage data to that output page?Thanks, Ryan
Reply to this message...
 
    
agaisin@currentechonline.com
my (limited) understanding is that you have two options here (and this is probably what you expected, but didn't want to hear ;-) ):
1) you can save it directly to the output stream, but then you're limited to displaying just that image in the page.
2) you can save it to disk (in some temp directory or whatever) and use an img tag...just as you normally would.

If you try out the thumbnail generator from gotdotnet you will see (I did, at least) that it references the dynamically built image from a temporary directory - hence, it must resort to saving it to disk in order to display it with other content on the page.

I'd love to find out if there were some tricky way to send html content and and image embedded, but it doesn't make sense to me that this is possible and I haven't seen any examples utilizing any such method.

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Tue, 22 Jan 2002 23:49:26 -0500 ------
-- Moved from [aspngarchitecture] to [ngfx-drawing] by Charles M. Carroll <Click here to reveal e-mail address> --

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

Reply to this message...
 
    
Ryan Trudelle-Schwarz (VIP)
The idea I had was to place the image into the Cache object and then
have a generic image display page that when sent an id grabs the data
out of the Cache object relating to the id and dumps it to the output.
Not a very clean solution though as it would require a page being
packaged with my control.

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]

my (limited) understanding is that you have two options here (and this
is probably what you expected, but didn't want to hear ;-) ):
1) you can save it directly to the output stream, but then you're
limited to displaying just that image in the page.
2) you can save it to disk (in some temp directory or whatever) and use
an img tag...just as you normally would.

If you try out the thumbnail generator from gotdotnet you will see (I
did, at least) that it references the dynamically built image from a
temporary directory - hence, it must resort to saving it to disk in
order to display it with other content on the page.

I'd love to find out if there were some tricky way to send html content
and and image embedded, but it doesn't make sense to me that this is
possible and I haven't seen any examples utilizing any such method.

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Tue, 22
Jan 2002 23:49:26 -0500 ------

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

Reply to this message...
 
    
Paul Shippy
Couldn't you have a page like showImage.aspx?image=theimage&output=html
which shows an html page that has this in the source - <img
src='showImage.aspx?image=theimage&output=jpg'> which outputs the image
itself?

T. Paul Shippy
Click here to reveal e-mail address
IT Development
AOP.com
480-735-7925

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]
Sent: Tuesday, January 22, 2002 5:31 PM
To: ngfx-drawing
Subject: [ngfx-drawing] Re: image generator

my (limited) understanding is that you have two options here (and this is
probably what you expected, but didn't want to hear ;-) ):
1) you can save it directly to the output stream, but then you're limited to
displaying just that image in the page.
2) you can save it to disk (in some temp directory or whatever) and use an
img tag...just as you normally would.

If you try out the thumbnail generator from gotdotnet you will see (I did,
at least) that it references the dynamically built image from a temporary
directory - hence, it must resort to saving it to disk in order to display
it with other content on the page.

I'd love to find out if there were some tricky way to send html content and
and image embedded, but it doesn't make sense to me that this is possible
and I haven't seen any examples utilizing any such method.

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Tue, 22 Jan
2002 23:49:26 -0500 ------
-- Moved from [aspngarchitecture] to [ngfx-drawing] by Charles M. Carroll
<Click here to reveal e-mail address> --

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

Reply to this message...
 
    
agaisin@currentechonline.com
Wow, that's cool!!
I didn't know you could use the src attribute that way - I assumed that src could only be used for static images (Just another lesson in thinking outside the box! ;-) ).
Upon further investigation I found a number of articles that utilize this trick:
http://www.aspalliance.com/stevesmith/articles/displayimage.asp
http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=137
http://www.aspfree.com/authors/123aspx/DBImagesCS/imagedownload_csharp.asp

Thanks for this insight!!
Arthur Gaisin

---- Message from Paul Shippy <Click here to reveal e-mail address> at Wed, 23 Jan 2002 08:47:47 -0700 ------
Couldn't you have a page like showImage.aspx?image=theimage&output=html
which shows an html page that has this in the source - <img
src='showImage.aspx?image=theimage&output=jpg'> which outputs the image
itself?

T. Paul Shippy
Click here to reveal e-mail address
IT Development
AOP.com
480-735-7925

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]
Sent: Tuesday, January 22, 2002 5:31 PM
To: ngfx-drawing
Subject: [ngfx-drawing] Re: image generator

my (limited) understanding is that you have two options here (and this is
probably what you expected, but didn't want to hear ;-) ):
1) you can save it directly to the output stream, but then you're limited to
displaying just that image in the page.
2) you can save it to disk (in some temp directory or whatever) and use an
img tag...just as you normally would.

If you try out the thumbnail generator from gotdotnet you will see (I did,
at least) that it references the dynamically built image from a temporary
directory - hence, it must resort to saving it to disk in order to display
it with other content on the page.

I'd love to find out if there were some tricky way to send html content and
and image embedded, but it doesn't make sense to me that this is possible
and I haven't seen any examples utilizing any such method.

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Tue, 22 Jan
2002 23:49:26 -0500 ------
-- Moved from [aspngarchitecture] to [ngfx-drawing] by Charles M. Carroll
<Click here to reveal e-mail address> --

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

Reply to this message...
 
    
Ryan Trudelle-Schwarz (VIP)
The issue is how to get the image to this showimage page.

-----Original Message-----
From: Paul Shippy [mailto:Click here to reveal e-mail address]

Couldn't you have a page like showImage.aspx?image=theimage&output=html
which shows an html page that has this in the source - <img
src='showImage.aspx?image=theimage&output=jpg'> which outputs the image
itself?

T. Paul Shippy
Click here to reveal e-mail address
IT Development
AOP.com
480-735-7925

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]

my (limited) understanding is that you have two options here (and this
is
probably what you expected, but didn't want to hear ;-) ):
1) you can save it directly to the output stream, but then you're
limited to
displaying just that image in the page.
2) you can save it to disk (in some temp directory or whatever) and use
an
img tag...just as you normally would.

If you try out the thumbnail generator from gotdotnet you will see (I
did,
at least) that it references the dynamically built image from a
temporary
directory - hence, it must resort to saving it to disk in order to
display
it with other content on the page.

I'd love to find out if there were some tricky way to send html content
and
and image embedded, but it doesn't make sense to me that this is
possible
and I haven't seen any examples utilizing any such method.

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Tue, 22
Jan
2002 23:49:26 -0500 ------

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

Reply to this message...
 
    
Charles M. Carroll (VIP)
I was too busy to answer so I am glad someone said that. You all really =
are making me proud. This list is becoming sooooooo awesome and high =
quality.

The best part about this is that OUTPUT CACHING can reduce the amount of =
times the code runs since all requests go through an ASPX which can be =
cached.

http://www.aspfriends.com/aspfriends/aspngcache.asp
is the place to find about this.

----- Original Message -----
From: Click here to reveal e-mail address
To: Click here to reveal e-mail address
Sent: Wed, 23 Jan 2002 11:01:40 +0000
Subject: Re: [ngfx-drawing] Re: image generator

Wow, that's cool!!
I didn't know you could use the src attribute that way - I assumed that =
src could only be used for static images (Just another lesson in =
thinking outside the box! ;-) ).
Upon further investigation I found a number of articles that utilize =
this trick:
http://www.aspalliance.com/stevesmith/articles/displayimage.asp
http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=3D137
http://www.aspfree.com/authors/123aspx/DBImagesCS/imagedownload_csharp.as=
p

Thanks for this insight!!
Arthur Gaisin

---- Message from Paul Shippy <Click here to reveal e-mail address> at Wed, 23 Jan 2002 =
08:47:47 -0700 ------
Couldn't you have a page like =
showImage.aspx?image=3Dtheimage&output=3Dhtml
which shows an html page that has this in the source - <img
src=3D'showImage.aspx?image=3Dtheimage&output=3Djpg'> which outputs the =
image
itself?

T. Paul Shippy
Click here to reveal e-mail address
IT Development
AOP.com
480-735-7925

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]
Sent: Tuesday, January 22, 2002 5:31 PM
To: ngfx-drawing
Subject: [ngfx-drawing] Re: image generator

my (limited) understanding is that you have two options here (and this =
is
probably what you expected, but didn't want to hear ;-) ):
1) you can save it directly to the output stream, but then you're =
limited to
displaying just that image in the page.
2) you can save it to disk (in some temp directory or whatever) and use =
an
img tag...just as you normally would.

If you try out the thumbnail generator from gotdotnet you will see (I =
did,
at least) that it references the dynamically built image from a =
temporary
directory - hence, it must resort to saving it to disk in order to =
display
it with other content on the page.

I'd love to find out if there were some tricky way to send html content =
and
and image embedded, but it doesn't make sense to me that this is =
possible
and I haven't seen any examples utilizing any such method.

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Tue, 22 =
Jan
2002 23:49:26 -0500 ------
-- Moved from [aspngarchitecture] to [ngfx-drawing] by Charles M. =
Carroll
<Click here to reveal e-mail address> --

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

Reply to this message...
 
    
agaisin@currentechonline.com
If I understand correctly, you'll want to seperate out the code/logic that generates the image from the code that generates the main page that will hold the images. The code that generates the image will be a seperate aspx page (or at least will be contained within a seperate aspx page) and that's what you'll reference with the img's src attribute - of course you'll need to pass it whatever parameters it will need to generate the appropriate image...

mainPage.aspx will contain an img tag with src attribute of src="imageGenerator.aspx?paramA=¶mB="

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Wed, 23 Jan 2002 11:02:31 -0500 ------
The issue is how to get the image to this showimage page.

-----Original Message-----
From: Paul Shippy [mailto:Click here to reveal e-mail address]

Couldn't you have a page like showImage.aspx?image=theimage&output=html
which shows an html page that has this in the source - <img
src='showImage.aspx?image=theimage&output=jpg'> which outputs the image
itself?

T. Paul Shippy
Click here to reveal e-mail address
IT Development
AOP.com
480-735-7925

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]

my (limited) understanding is that you have two options here (and this
is
probably what you expected, but didn't want to hear ;-) ):
1) you can save it directly to the output stream, but then you're
limited to
displaying just that image in the page.
2) you can save it to disk (in some temp directory or whatever) and use
an
img tag...just as you normally would.

If you try out the thumbnail generator from gotdotnet you will see (I
did,
at least) that it references the dynamically built image from a
temporary
directory - hence, it must resort to saving it to disk in order to
display
it with other content on the page.

I'd love to find out if there were some tricky way to send html content
and
and image embedded, but it doesn't make sense to me that this is
possible
and I haven't seen any examples utilizing any such method.

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Tue, 22
Jan
2002 23:49:26 -0500 ------

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

Reply to this message...
 
    
Ryan Trudelle-Schwarz (VIP)
But it's not really feasible to be pumping an array of say 30K integers
through a querystring. So my intention is to build the image in a
control and ship it to the showImage.aspx somehow. My initial thought
was to use the Cache object but was wondering if anyone had confronted
this problem before and come up with a better solution.

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]

If I understand correctly, you'll want to seperate out the code/logic
that generates the image from the code that generates the main page that
will hold the images. The code that generates the image will be a
seperate aspx page (or at least will be contained within a seperate aspx
page) and that's what you'll reference with the img's src attribute - of
course you'll need to pass it whatever parameters it will need to
generate the appropriate image...

mainPage.aspx will contain an img tag with src attribute of
src="imageGenerator.aspx?paramA=¶mB="

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Wed, 23
Jan 2002 11:02:31 -0500 ------
The issue is how to get the image to this showimage page.

Reply to this message...
 
    
Jeffrey Widmer
Check out the article at (watch for wrapping):
http://aspalliance.com/jeffwids/articles.aspx?article=articles/article_106.a
scx
for a quick sample on streaming dynamic images into yor web page.

Hope this helps.
-Jeff

-----Original Message-----
From: Ryan Trudelle-Schwarz [mailto:Click here to reveal e-mail address]
Sent: Wednesday, January 23, 2002 11:03 AM
To: ngfx-drawing
Subject: [ngfx-drawing] Re: image generator

The issue is how to get the image to this showimage page.

-----Original Message-----
From: Paul Shippy [mailto:Click here to reveal e-mail address]

Couldn't you have a page like showImage.aspx?image=theimage&output=html
which shows an html page that has this in the source - <img
src='showImage.aspx?image=theimage&output=jpg'> which outputs the image
itself?

T. Paul Shippy
Click here to reveal e-mail address
IT Development
AOP.com
480-735-7925

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]

my (limited) understanding is that you have two options here (and this
is
probably what you expected, but didn't want to hear ;-) ):
1) you can save it directly to the output stream, but then you're
limited to
displaying just that image in the page.
2) you can save it to disk (in some temp directory or whatever) and use
an
img tag...just as you normally would.

If you try out the thumbnail generator from gotdotnet you will see (I
did,
at least) that it references the dynamically built image from a
temporary
directory - hence, it must resort to saving it to disk in order to
display
it with other content on the page.

I'd love to find out if there were some tricky way to send html content
and
and image embedded, but it doesn't make sense to me that this is
possible
and I haven't seen any examples utilizing any such method.

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Tue, 22
Jan
2002 23:49:26 -0500 ------

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

Reply to this message...
 
    
Ryan Trudelle-Schwarz (VIP)
Just did, however, my image is going to be a chart with at least a
thousand points of data so using the querystring is not a viable option.

-----Original Message-----
From: Jeffrey Widmer [mailto:Click here to reveal e-mail address]

Check out the article at (watch for wrapping):
http://aspalliance.com/jeffwids/articles.aspx?article=articles/article_1
06.a
scx
for a quick sample on streaming dynamic images into yor web page.

Hope this helps.
-Jeff

-----Original Message-----
From: Ryan Trudelle-Schwarz [mailto:Click here to reveal e-mail address]

The issue is how to get the image to this showimage page.

-----Original Message-----
From: Paul Shippy [mailto:Click here to reveal e-mail address]

Couldn't you have a page like showImage.aspx?image=theimage&output=html
which shows an html page that has this in the source - <img
src='showImage.aspx?image=theimage&output=jpg'> which outputs the image
itself?

T. Paul Shippy
Click here to reveal e-mail address
IT Development
AOP.com
480-735-7925

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]

my (limited) understanding is that you have two options here (and this
is
probably what you expected, but didn't want to hear ;-) ):
1) you can save it directly to the output stream, but then you're
limited to
displaying just that image in the page.
2) you can save it to disk (in some temp directory or whatever) and use
an
img tag...just as you normally would.

If you try out the thumbnail generator from gotdotnet you will see (I
did,
at least) that it references the dynamically built image from a
temporary
directory - hence, it must resort to saving it to disk in order to
display
it with other content on the page.

I'd love to find out if there were some tricky way to send html content
and
and image embedded, but it doesn't make sense to me that this is
possible
and I haven't seen any examples utilizing any such method.

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Tue, 22
Jan
2002 23:49:26 -0500 ------

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

Reply to this message...
 
    
Chris Garrett

[Original message clipped]

bit of a fudge, but you could pass and database ID or the filename of a temp
file on the querystring, the temp file could be either the image or a xml
data file ...

.. just thinking out loud as it were ..

Chris

--

NEW ARTICLE:

Warp an image on the fly with GDI+/System.Drawing
http://www.RealWorldASP.net

Don't miss the news! - Sign up for ASP/.NET Newsletter:
http://www.aspalliance.com/chrisg/subscribe.asp

Reply to this message...
 
    
Jeffrey Widmer
Ryan,
Why do you have to pass 30k integers in the querystring? What is this 30k
integers value composed of?
-Jeff

-----Original Message-----
From: Ryan Trudelle-Schwarz [mailto:Click here to reveal e-mail address]
Sent: Wednesday, January 23, 2002 11:20 AM
To: ngfx-drawing
Subject: [ngfx-drawing] Re: image generator

But it's not really feasible to be pumping an array of say 30K integers
through a querystring. So my intention is to build the image in a
control and ship it to the showImage.aspx somehow. My initial thought
was to use the Cache object but was wondering if anyone had confronted
this problem before and come up with a better solution.

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]

If I understand correctly, you'll want to seperate out the code/logic
that generates the image from the code that generates the main page that
will hold the images. The code that generates the image will be a
seperate aspx page (or at least will be contained within a seperate aspx
page) and that's what you'll reference with the img's src attribute - of
course you'll need to pass it whatever parameters it will need to
generate the appropriate image...

mainPage.aspx will contain an img tag with src attribute of
src="imageGenerator.aspx?paramA=¶mB="

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Wed, 23
Jan 2002 11:02:31 -0500 ------
The issue is how to get the image to this showimage page.

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

Reply to this message...
 
    
Jeffrey Widmer
Where is the 100 data points coming from? If the user is setting them on a
previous web page, then can't you just access that database from the image
generating aspx page (that has been set to the src of the img html tag)?
Granted you might have to pass a userid or something like that in the
querystring, but isn't that possible?
-Jeff

-----Original Message-----
From: Ryan Trudelle-Schwarz [mailto:Click here to reveal e-mail address]
Sent: Wednesday, January 23, 2002 11:31 AM
To: ngfx-drawing
Subject: [ngfx-drawing] Re: image generator

Just did, however, my image is going to be a chart with at least a
thousand points of data so using the querystring is not a viable option.

-----Original Message-----
From: Jeffrey Widmer [mailto:Click here to reveal e-mail address]

Check out the article at (watch for wrapping):
http://aspalliance.com/jeffwids/articles.aspx?article=articles/article_1
06.a
scx
for a quick sample on streaming dynamic images into yor web page.

Hope this helps.
-Jeff

-----Original Message-----
From: Ryan Trudelle-Schwarz [mailto:Click here to reveal e-mail address]

The issue is how to get the image to this showimage page.

-----Original Message-----
From: Paul Shippy [mailto:Click here to reveal e-mail address]

Couldn't you have a page like showImage.aspx?image=theimage&output=html
which shows an html page that has this in the source - <img
src='showImage.aspx?image=theimage&output=jpg'> which outputs the image
itself?

T. Paul Shippy
Click here to reveal e-mail address
IT Development
AOP.com
480-735-7925

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]

my (limited) understanding is that you have two options here (and this
is
probably what you expected, but didn't want to hear ;-) ):
1) you can save it directly to the output stream, but then you're
limited to
displaying just that image in the page.
2) you can save it to disk (in some temp directory or whatever) and use
an
img tag...just as you normally would.

If you try out the thumbnail generator from gotdotnet you will see (I
did,
at least) that it references the dynamically built image from a
temporary
directory - hence, it must resort to saving it to disk in order to
display
it with other content on the page.

I'd love to find out if there were some tricky way to send html content
and
and image embedded, but it doesn't make sense to me that this is
possible
and I haven't seen any examples utilizing any such method.

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Tue, 22
Jan
2002 23:49:26 -0500 ------

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

Reply to this message...
 
    
agaisin@currentechonline.com
I don't have all the details of the page you're working with, but this is how I see it - the logic/code that's generating the thousands of points is what should be moved to a seperate page.
So you can have a skeleton page as a placeholder that takes in the initial arguments (from which you magically generate thousands of points, I guess?) and that's the mainpage that includes an img tag who's src attribute consists of a url to "workhorse.aspx?initialParamA=&initialParamB" etc... and the workhorse chartGenerator then generates thousands of points from which it draws the chart.
Does that makes sense?

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Wed, 23 Jan 2002 11:30:30 -0500 ------
Just did, however, my image is going to be a chart with at least a
thousand points of data so using the querystring is not a viable option.

-----Original Message-----
From: Jeffrey Widmer [mailto:Click here to reveal e-mail address]

Check out the article at (watch for wrapping):
http://aspalliance.com/jeffwids/articles.aspx?article=articles/article_1
06.a
scx
for a quick sample on streaming dynamic images into yor web page.

Hope this helps.
-Jeff

-----Original Message-----
From: Ryan Trudelle-Schwarz [mailto:Click here to reveal e-mail address]

The issue is how to get the image to this showimage page.

-----Original Message-----
From: Paul Shippy [mailto:Click here to reveal e-mail address]

Couldn't you have a page like showImage.aspx?image=theimage&output=html
which shows an html page that has this in the source - <img
src='showImage.aspx?image=theimage&output=jpg'> which outputs the image
itself?

T. Paul Shippy
Click here to reveal e-mail address
IT Development
AOP.com
480-735-7925

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]

my (limited) understanding is that you have two options here (and this
is
probably what you expected, but didn't want to hear ;-) ):
1) you can save it directly to the output stream, but then you're
limited to
displaying just that image in the page.
2) you can save it to disk (in some temp directory or whatever) and use
an
img tag...just as you normally would.

If you try out the thumbnail generator from gotdotnet you will see (I
did,
at least) that it references the dynamically built image from a
temporary
directory - hence, it must resort to saving it to disk in order to
display
it with other content on the page.

I'd love to find out if there were some tricky way to send html content
and
and image embedded, but it doesn't make sense to me that this is
possible
and I haven't seen any examples utilizing any such method.

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Tue, 22
Jan
2002 23:49:26 -0500 ------

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

Reply to this message...
 
    
Kloberg Mac (LAM) (VIP)
I did a performance chart once using this technique: This involved storing
the coordinates of each point in a dataset (along with some parameters for
the chart) and then storing the dataset in a Session variable.
The page that creates the image just picks up the dataset from the session
and draws the graph.

Is this similar what you're trying to do?

The source for that page is available here:
http://www.liebherr-us.com/equis/desktopdefault.aspx?sa=1&si=eddem005m002&sr
c=1

hth
--
Sincerely,
Mac Kloberg
LIEBHERR AMERICA INC.
http://www.liebherr.com

-----Original Message-----
From: Ryan Trudelle-Schwarz [mailto:Click here to reveal e-mail address]
Sent: Wednesday, January 23, 2002 11:20 AM
To: ngfx-drawing
Subject: [ngfx-drawing] Re: image generator

But it's not really feasible to be pumping an array of say 30K integers
through a querystring. So my intention is to build the image in a
control and ship it to the showImage.aspx somehow. My initial thought
was to use the Cache object but was wondering if anyone had confronted
this problem before and come up with a better solution.

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]

If I understand correctly, you'll want to seperate out the code/logic
that generates the image from the code that generates the main page that
will hold the images. The code that generates the image will be a
seperate aspx page (or at least will be contained within a seperate aspx
page) and that's what you'll reference with the img's src attribute - of
course you'll need to pass it whatever parameters it will need to
generate the appropriate image...

mainPage.aspx will contain an img tag with src attribute of
src="imageGenerator.aspx?paramA=¶mB="

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Wed, 23
Jan 2002 11:02:31 -0500 ------
The issue is how to get the image to this showimage page.

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

Reply to this message...
 
    
Ryan Trudelle-Schwarz (VIP)
It's not necessarily a database, could be an xml file, or pulled from a
webservice or any other source of a list of numbers. I don't want to
limit the user's abilities at all.

-----Original Message-----
From: Jeffrey Widmer [mailto:Click here to reveal e-mail address]

Where is the 100 data points coming from? If the user is setting them
on a
previous web page, then can't you just access that database from the
image
generating aspx page (that has been set to the src of the img html tag)?
Granted you might have to pass a userid or something like that in the
querystring, but isn't that possible?
-Jeff

Reply to this message...
 
    
Chris Kinsman
Probably the easiest is to pass the parameters needed to generate the
image as part of the querystring for your <img src> tag.

-----Original Message-----
From: Ryan Trudelle-Schwarz [mailto:Click here to reveal e-mail address]
Sent: Tuesday, January 22, 2002 8:49 PM
To: ngfx-drawing
Subject: [ngfx-drawing] image generator

-- Moved from [aspngarchitecture] to [ngfx-drawing] by Charles M.
Carroll <Click here to reveal e-mail address> --

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

| [ngfx-drawing] member Click here to reveal e-mail address =3D YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp =3D JOIN/QUIT

Reply to this message...
 
    
Chris Kinsman
How can you do #1? I can't figure out that one. If you are in an HTML
page and save the image data directly into the stream the browser is
just going to treat that like goobledy gook.

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]
Sent: Tuesday, January 22, 2002 4:31 PM
To: ngfx-drawing
Subject: [ngfx-drawing] Re: image generator

my (limited) understanding is that you have two options here (and this
is probably what you expected, but didn't want to hear ;-) ):
1) you can save it directly to the output stream, but then you're
limited to displaying just that image in the page.
2) you can save it to disk (in some temp directory or whatever) and use
an img tag...just as you normally would.

If you try out the thumbnail generator from gotdotnet you will see (I
did, at least) that it references the dynamically built image from a
temporary directory - hence, it must resort to saving it to disk in
order to display it with other content on the page.

I'd love to find out if there were some tricky way to send html content
and and image embedded, but it doesn't make sense to me that this is
possible and I haven't seen any examples utilizing any such method.

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Tue, 22
Jan 2002 23:49:26 -0500 ------
-- Moved from [aspngarchitecture] to [ngfx-drawing] by Charles M.
Carroll <Click here to reveal e-mail address> --

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

| [ngfx-drawing] member Click here to reveal e-mail address =3D YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp =3D JOIN/QUIT

| [ngfx-drawing] member Click here to reveal e-mail address =3D YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp =3D JOIN/QUIT

Reply to this message...
 
    
Chris Kinsman
You could use a httphandler that installs into the GAC but then they
would have to add an extension mapping to IIS and the web.config.

Also beware of relying on the cache object. If you do that your app is
going to break when you start web farming it...

-----Original Message-----
From: Ryan Trudelle-Schwarz [mailto:Click here to reveal e-mail address]
Sent: Tuesday, January 22, 2002 9:53 PM
To: ngfx-drawing
Subject: [ngfx-drawing] Re: image generator

The idea I had was to place the image into the Cache object and then
have a generic image display page that when sent an id grabs the data
out of the Cache object relating to the id and dumps it to the output.
Not a very clean solution though as it would require a page being
packaged with my control.

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]

=20
my (limited) understanding is that you have two options here (and this
is probably what you expected, but didn't want to hear ;-) ):
1) you can save it directly to the output stream, but then you're
limited to displaying just that image in the page.
2) you can save it to disk (in some temp directory or whatever) and use
an img tag...just as you normally would.

If you try out the thumbnail generator from gotdotnet you will see (I
did, at least) that it references the dynamically built image from a
temporary directory - hence, it must resort to saving it to disk in
order to display it with other content on the page.

I'd love to find out if there were some tricky way to send html content
and and image embedded, but it doesn't make sense to me that this is
possible and I haven't seen any examples utilizing any such method.

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Tue, 22
Jan 2002 23:49:26 -0500 ------

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

| [ngfx-drawing] member Click here to reveal e-mail address =3D YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp =3D JOIN/QUIT

Reply to this message...
 
    
ryan@mamanze.com (VIP)
For that, you have to use a seperate page. Take a look around and you'll see 4-5 articles on this subject including one just put out by Jeff Widmer: http://www.aspalliance.com/jeffwids/articles.aspx?article=articles/article_106.ascx

---- Message from "Chris Kinsman" <Click here to reveal e-mail address> at Wed, 23 Jan 2002 10:40:07 -0800 ------
[Original message clipped]

Reply to this message...
 
    
Chris Kinsman
Where do the thousand points of data come from?

-----Original Message-----
From: Ryan Trudelle-Schwarz [mailto:Click here to reveal e-mail address]
Sent: Wednesday, January 23, 2002 8:31 AM
To: ngfx-drawing
Subject: [ngfx-drawing] Re: image generator

Just did, however, my image is going to be a chart with at least a
thousand points of data so using the querystring is not a viable option.

-----Original Message-----
From: Jeffrey Widmer [mailto:Click here to reveal e-mail address]=20
=20
Check out the article at (watch for wrapping):
http://aspalliance.com/jeffwids/articles.aspx?article=3Darticles/article_=
1
06.a
scx
for a quick sample on streaming dynamic images into yor web page.

Hope this helps.
-Jeff

-----Original Message-----
From: Ryan Trudelle-Schwarz [mailto:Click here to reveal e-mail address]

The issue is how to get the image to this showimage page.

-----Original Message-----
From: Paul Shippy [mailto:Click here to reveal e-mail address]

Couldn't you have a page like =
showImage.aspx?image=3Dtheimage&output=3Dhtml
which shows an html page that has this in the source - <img
src=3D'showImage.aspx?image=3Dtheimage&output=3Djpg'> which outputs the =
image
itself?

T. Paul Shippy
Click here to reveal e-mail address
IT Development
AOP.com
480-735-7925

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]

my (limited) understanding is that you have two options here (and this
is
probably what you expected, but didn't want to hear ;-) ):
1) you can save it directly to the output stream, but then you're
limited to
displaying just that image in the page.
2) you can save it to disk (in some temp directory or whatever) and use
an
img tag...just as you normally would.

If you try out the thumbnail generator from gotdotnet you will see (I
did,
at least) that it references the dynamically built image from a
temporary
directory - hence, it must resort to saving it to disk in order to
display
it with other content on the page.

I'd love to find out if there were some tricky way to send html content
and
and image embedded, but it doesn't make sense to me that this is
possible
and I haven't seen any examples utilizing any such method.

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Tue, 22
Jan
2002 23:49:26 -0500 ------

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

| [ngfx-drawing] member Click here to reveal e-mail address =3D YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp =3D JOIN/QUIT

Reply to this message...
 
    
Paul Shippy
Response.ClearContent();
Response.ContentType = "image/gif"; // or image/jpg
Response.BinaryWrite(theStream.ToArray());
Response.End();

(from http://www.aspalliance.com/stevesmith/articles/displayimage.asp)

T. Paul Shippy
Click here to reveal e-mail address
IT Development
AOP.com
480-735-7925

-----Original Message-----
From: Chris Kinsman [mailto:Click here to reveal e-mail address]
Sent: Wednesday, January 23, 2002 11:40 AM
To: ngfx-drawing
Subject: [ngfx-drawing] Re: image generator

How can you do #1? I can't figure out that one. If you are in an HTML
page and save the image data directly into the stream the browser is
just going to treat that like goobledy gook.

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]
Sent: Tuesday, January 22, 2002 4:31 PM
To: ngfx-drawing
Subject: [ngfx-drawing] Re: image generator

my (limited) understanding is that you have two options here (and this
is probably what you expected, but didn't want to hear ;-) ):
1) you can save it directly to the output stream, but then you're
limited to displaying just that image in the page.
2) you can save it to disk (in some temp directory or whatever) and use
an img tag...just as you normally would.

If you try out the thumbnail generator from gotdotnet you will see (I
did, at least) that it references the dynamically built image from a
temporary directory - hence, it must resort to saving it to disk in
order to display it with other content on the page.

I'd love to find out if there were some tricky way to send html content
and and image embedded, but it doesn't make sense to me that this is
possible and I haven't seen any examples utilizing any such method.

hth,
Arthur Gaisin

---- Message from "Ryan Trudelle-Schwarz" <Click here to reveal e-mail address> at Tue, 22
Jan 2002 23:49:26 -0500 ------
-- Moved from [aspngarchitecture] to [ngfx-drawing] by Charles M.
Carroll <Click here to reveal e-mail address> --

I want to create images within a page and have them show up within the
page. So my image is a control and I'm setting properties of that
control.

So, what methods can I use to output the image? I assume I'll need to
use a <img /> tag linked to an output page but how should I get the
image data to that output page?

Thanks, Ryan

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification