Solved

Displaying generated images

Posted on 1998-11-16
2
166 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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.

622 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