in reply to display gif image
Chris# Open the file: open (GIF, "/home/httpd/images/my_perl_gif.gif") || die "$!\n"; my ($image, $buff); while (read GIF, $buff, 1024) { $image.=$buff; } close GIF; # Now send the information to the browser: print "Content-Type: text/html\n\n"; print '<html><body>'; print "<img src='/images/my_perl_gif.gif' alt='My GIF'>"; print '</body></html>';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: display gif image
by ckohl1 (Hermit) on Apr 27, 2001 at 00:24 UTC |