created jpegs

B

Brian Henry

I want to make a file say called mypics.jpg, but the jpg file is really a
script in aspx that creates the jpeg imeage and returns it as a image file.
how do i do this in asp .net? thanks! i know you can do it in php.. any
examples out there?
 
K

Kevin Spencer

You create it as an ASPX page, and set the Response.ContentType to
"image/jpg" and stream out the image to the browser. The request will be for
a .aspx file, but the Response.ContneType property will inform the browser
that it's a JPG.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.
 
B

Brian Henry

thanks!


Kevin Spencer said:
You create it as an ASPX page, and set the Response.ContentType to
"image/jpg" and stream out the image to the browser. The request will be for
a .aspx file, but the Response.ContneType property will inform the browser
that it's a JPG.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top