473,388 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

created jpegs

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?
Nov 17 '05 #1
2 1341
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.

"Brian Henry" <bh****@reschini.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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?

Nov 17 '05 #2
thanks!
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl...
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.

"Brian Henry" <bh****@reschini.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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?


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: jerrygarciuh | last post by:
Hello everyone, Wondering if anyone else has had problems with gifs created by php or if anyone sees a problem with this code. Symptom: created jpegs work fine and created gifs work fine in...
3
by: Aaron Davies | last post by:
I'm trying to write some classes for my collaborative whiteboard to transmit images over the network, using the javax.imageio API, but I'm running into an odd problem: my code words fine with PNGs,...
0
by: newbie | last post by:
Hi Can anyone please tell me how I can get and decompress JPEGs from an URL? Thank you!
2
by: R Duke | last post by:
I have tried everything I can think of to change the visible property of a design time created control from a dynamically created control's command event handler. Here is the scenario. I have...
7
by: MariusI | last post by:
Are objects implicitly stored in the TLS of the currently running thread? When creating multithreaded applications i get errors when accessing data from a different thread than the thread used to...
9
by: Tushar | last post by:
Followup-To: microsoft.public.dotnet.general Does anyone know when is this event raised, is it: 1) When the file is created but may not have been closed 2) When the file is created AND it has...
1
by: kmazur | last post by:
Hello, I have a folder on the server g:\users\logos\. I need to create a web app that will display all the images in that folder (there are gifs, tiffs, jpegs and bmps) in thumbnail format and...
2
by: tlc1680 | last post by:
I am trying to add jpegs in a form, I am using a bound object Frame. When I right click and insert object I choose create from file I choose the picture and all that shows up is a link, the only...
3
by: Happy Man | last post by:
Why we created All praise is due to Allah and may His peace and blessings be upon his last messenger (saaw) and on all those who follow the path of righteousness until the last day. We have...
4
by: =?Utf-8?B?ZG1idXNv?= | last post by:
I have an Access database with a table named 'tblMedia'. In tblMedia I have a field named 'Media' that is defined as an 'OLE Ojbect' field. In this Media field, I have pictures, they are jpegs. I'm...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.