Solved

Displaying generated images

Posted on 1998-11-16
2
165 Views
Last Modified: 2013-12-25
Is it possible to change content-type within a page?  I want to put out some HTML and then change the content-type to image/gif and then throw in my generated gif output and then switch back to HTML.  The problem is that my directive to change the content-type to image/gif is just appearing as text on the page.  Can this be done or do I need to put the gif in a file and display it within HTML? Or this there a better way to deal with dynamically generated images within the page?  Thanks.
0
Comment
Question by:cmulzer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 100 total points
ID: 1856409
You can't switch from MIME-type within one document. If you want to display a generated image, do it in a way like this:


<img src="/cgi-bin/generated_image.pl?this=querystring">

in which generated_image.pl is a cgi which generates the image.
0
 

Author Comment

by:cmulzer
ID: 1856410
Thanks!  That was just what I needed.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question