H
howa
In order to hidden the real path, I send the png file via CGI, e.g.
##############
print "Content-type:image/png\n\n";
my $file = "test.png";
open INPUT_FILE, "$file" or die "Couldn't open file: $!";
while( sysread(INPUT_FILE, $data, 10240) ) {
print $data;
}
close FILE;
##############
Any faster/better method?
Thanks.
##############
print "Content-type:image/png\n\n";
my $file = "test.png";
open INPUT_FILE, "$file" or die "Couldn't open file: $!";
while( sysread(INPUT_FILE, $data, 10240) ) {
print $data;
}
close FILE;
##############
Any faster/better method?
Thanks.