Dear cgi-application programmers:
But adding that line, in my cgi-bin/showphoto.pl
-------------------------------------------
#!c:\perl\bin\perl.exe
use strict;
use CGI qw(:standard);
print("Content-type: Image/jpg\n\n");
local $/ = undef; # file slurp mode
open(INFILE, "<C:\Apache2\computer2G0.jpg");
binmode(INFILE);
my $img = <INFILE>;
close(INFILE);
binmode STDOUT;
print $img;
exit;
------------------------------------------------
remaining not help, in my
ie6-xp I still can not see that picture it still is small redcross.
if you do have experience and prety sure the code is no wrong, then it
probably is httpd of apache's problem
but thanks your help anyway,
and hope to see more hints on this
-----------------------
binmode( INFILE );
-----------------------
>
> > my $img = <INFILE>;
> > close(INFILE);
>
> > #binmode STDOUT;
>
> > print $img;
> > exit;
>
> I think that's what you want though I cannot test it at the moment.
>
> -cm
>
>
Sincere Eric
www.linuxspice.com
linux/window pc for sale
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]