[Xitami] Security for image files for CGI app

Jeff Hamblin xitami@lists.xitami.org
Wed, 19 Jun 2002 15:26:09 -0700


From: "Gregory Hart" <greg@freastro.net>
> You could use Perl or another programming language
> to open the image file, print the content type of
> the image, print the image, and

Yes I could stream an image from my CGI, but I can't
figure out how to do that with thumbnails embedded
in an HTML table.

For example:

<table>
  <tr><td><a href="/inv/imgs/pic1.jpg" target="img"><img
src="/inv/imgs/pic1_small.jpg"></a>checkbox, description etc.<td>
  </td></td></tr>
  <tr><td><a href="/inv/imgs/pic2.jpg" target="img"><img
src="/inv/imgs/pic2_small.jpg"></a>checkbox, description etc.<td>
  </td></td></tr>
  <tr><td><a href="/inv/imgs/pic3.jpg" target="img"><img
src="/inv/imgs/pic3_small.jpg"></a>checkbox, description etc.<td>
  </td></td></tr>
</table>

You can't stream individual components of a page at once,
right?

I guess I could write a separate CGI app to stream each image
on demand as part of the HREF, but that seems like an awful
extra load to call a CGI for each image. Just hoped there might
be a better solution.

By the way, the server is Xitami 2.4d9, running on Win2k Pro.
App is developed with Delphi 5.

-Jeff