[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

CGI

Posted on 2000-03-02
3
Medium Priority
?
216 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 200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

649 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