473,545 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to embed dynamic generated image into HTML?

I have som code that dynamically generates an image and writes it back to
the browser from an .aspx codebehind file like this:

System.Drawing. Image image;
image = GenerateImage() ;
Response.Conten tType = "image/jpeg";
image.Save(Resp onse.OutputStre am, System.Drawing. Imaging.ImageFo rmat.Jpeg);

This works fine, but how can I use this image as a source for an server side
Image control defined in my .aspx file?

Olav
Nov 18 '05 #1
2 2116
Did you try setting the source of the image tag to the ASPX page that
generates the image.

"Olav Tollefsen" <x@y.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I have som code that dynamically generates an image and writes it back to
the browser from an .aspx codebehind file like this:

System.Drawing. Image image;
image = GenerateImage() ;
Response.Conten tType = "image/jpeg";
image.Save(Resp onse.OutputStre am, System.Drawing. Imaging.ImageFo rmat.Jpeg);
This works fine, but how can I use this image as a source for an server side Image control defined in my .aspx file?

Olav

Nov 18 '05 #2
So, I can't do it from a single page?

Olav

"Peter Rilling" <pe***@nospam.r illing.net> wrote in message
news:#D******** ******@TK2MSFTN GP09.phx.gbl...
Did you try setting the source of the image tag to the ASPX page that
generates the image.

"Olav Tollefsen" <x@y.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I have som code that dynamically generates an image and writes it back to the browser from an .aspx codebehind file like this:

System.Drawing. Image image;
image = GenerateImage() ;
Response.Conten tType = "image/jpeg";
image.Save(Resp onse.OutputStre am,

System.Drawing. Imaging.ImageFo rmat.Jpeg);

This works fine, but how can I use this image as a source for an server

side
Image control defined in my .aspx file?

Olav


Nov 18 '05 #3

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

Similar topics

2
9353
by: Csaba2000 | last post by:
I want to be able to embed a single quote into an INPUT element within a dynamically generated IFRAME. The example below shows how the IFRAME is generated. Challenge: I'd like the alert box to show: Mom said, "Don't" instead of the current: Mom said, "Do not". The point of the exercise is that I will be passing arbitrary strings to the...
10
6294
by: Anna | last post by:
Hi all. I don't have a very deep understanding of CSS and this question might sound stupid for you. Sorry for that. Can the overflow CSS property be applied to the embed tag? I have an embed tag whose source is big SVG file, whose dimensions are unknown. If it is bigger than the screen, the rest of the SVG is clipped and not shown. I...
2
3088
by: Cris Curtis | last post by:
When I use an embed tag that uses a dynamic aspx page, the dynamic aspx page appears to get called 2 times instead. Below is code that adds an embed tag to a placeholder control that will use a second aspx page to generate the svg for the embed. svgchart.Controls.Clear(); string strSRC =...
24
6231
by: Manuel | last post by:
Is it possible to embed an image, like a company logo in a CDOSYS generated message? If yes, I´ll apreciate some code sample. I´ve been able to format messages in html the way I like, but I can't figure out how to embed an image. Thanks for your time. -- Manuel
5
3151
by: pittendrigh | last post by:
There must be millions of dynamically generated html pages out there now, built by on-the-fly php code (and jsp, perl cgi, asp, etc). Programatic page generation is transparently useful. But querying a database, negotiatinig lots of if-then-else logic and echo'ing html code out on port 80 every time a page is requested has to be a huge...
6
2369
by: qualitychecker | last post by:
Hello thanks for your help.. I try to reference a PHP module from within a HTML file, see below ---------------------------------------- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"> <head> <titleMy title </title> </head> <body> on place un embed <embed id="embed1" alt="ne marche pas..." src="ws.php?
4
2463
by: computer_guy | last post by:
Hi Everyone, I am writing an HTMP page like below: ---------------Dynamic HTML Page report.aspx----------------------- 1. Complicated algorithm to generate data and store it in memory 2. Inline Image to visualize generated data in graphic format.
1
1832
by: empiresolutions | last post by:
I have a page thats sole function is to generate a dynamic image. When the image is loaded on screen, the only code within the source code body is <img alt="my alt tag" src="http://www.my-site.com/get.php?image_id=1" /> When i right click on the image and try a "save as.." the suggested file name is *get.php.jpg*. So good so far. What i want to...
0
7478
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7410
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7668
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7923
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
4960
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3466
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.