|< 1 2 >| | 15 Einträge, 2 Seiten |
1 2 3 4 5 6 7 8 9 10
use strict; open(IMAGE, "image.gif"); binmode(IMAGE); my $Data = <IMAGE>; close(IMAGE); print "Content-type: image/gif\ n\ n"; print $Data;
my $Data = <IMAGE>;
my @Data = <IMAGE>;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl
use strict;
use warnings;
my($image);
print "Content-type: image/gif\n\n";
open(IMAGE, '<image.gif') or die $!;
binmode(IMAGE);
{
local $/;
undef($/);
$image = <IMAGE>;
}
close(IMAGE);
binmode(STDOUT);
print $image;
1
2
3
4
5
6
7
8
9
10
11
use strict;
open(IMAGE, "image.gif");
binmode(IMAGE);
my @image = <IMAGE>;
binmode(STDOUT);
close(IMAGE);
print "Content-type: image/gif\n\n";
print @image;
undef($/);
1
2
3
4
5
6
7
8
9
10
11
use strict;
open(IMAGE, "image.gif");
binmode(IMAGE);
my @image = <IMAGE>;
close(IMAGE);
print "Content-type: image/gif\n\n";
binmode(STDOUT);
print @image;
1
2
3
4
5
6
7
8
9
use strict;
use warnings;
use GD;
my $image = newFromJpeg GD::Image('image.jpg');
binmode(STDOUT);
print "Content-type: text/html\n\n";
print $image->jpeg;
|< 1 2 >| | 15 Einträge, 2 Seiten |