Solved

CGI

Posted on 2000-03-02
3
213 Views
Last Modified: 2013-11-18
Hi all. How can I receive gif/jpeg image
in my standard CGI Executable application (throw WebRequest event)?
0
Comment
Question by:zeko
[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
3 Comments
 
LVL 13

Accepted Solution

by:
Epsylon earned 50 total points
ID: 2576126
For example:

var fs: TFileStream;

fs := TFileStream.Create('image.jpg', fmOpenRead);
Response.ContentType := 'image/jpeg';
Response.ContentStream := fs;
Response.SendResponse;
fs.Free;



Instead of using a TFileStream you can use TJPEGImage.SaveToStream(<TMemoryStream>) and pass it to the ContentStream.
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2576133
0
 

Author Comment

by:zeko
ID: 2582975
Thanks.
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

729 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