created jpegs

  • Thread starter Thread starter Brian Henry
  • Start date Start date
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?
 
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.
 
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.
 
Back
Top