On Friday, December 13, 2002, at 09:00 PM, eric wrote:
Dear cgi application of perl developer:
I tried to put photo to other site , but not by hyperlink or upload but
directly broadcast from my site.
but maybe my perl code have problem, that other can not see it(or maybe my
httpd.conf of apache not configure well)
--------------------my C:\Apache2\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;
I think that's what you want though I cannot test it at the moment. -cm --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
