in reply to Image not displayed properly
that looks like it does exactly what you want. I found it in the O'Reilly Perl Cookbook Sample Chapter 8. O'Reilly rocks.$gifname = "picture.gif"; open(GIF, $gifname) or die "can't open $gifname: $!"; binmode(GIF); # now DOS won't mangle binary input from GIF binmode(STDOUT); # now DOS won't mangle binary output to STDOUT while (read(GIF, $buff, 8 * 2**10)) { print STDOUT $buff; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Image not displayed properly
by Anonymous Monk on Aug 19, 2003 at 02:27 UTC | |
by PodMaster (Abbot) on Aug 19, 2003 at 09:55 UTC |