Solved

Displaying generated images

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
site launch date and last modified date 3 83
Drop down button NAMES disappear 1 62
cookies analysis tools 2 73
Remove third quote mark from widget 6 14
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now