Article View: pl.comp.lang.perl
Article #818Re: grafika
From: Krzysztof Gmyr
Date: Thu, 11 Dec 1997 19:56
Date: Thu, 11 Dec 1997 19:56
37 lines
1524 bytes
1524 bytes
Krzysztof Lachowicz wrote:
>
> Jest to z pewnościš trywialne pytanie:
> Mam w skrypcie kawałek kodu HTML który wyświetla stronę i wsystko jest
> Ok' , ale nie za bardzo wychodzi mi wyświetlenie grafiki np. obrazka GIF
> , próbowałem
>
> print("Content-type: image/gif\n\n"); .
> print <<WEB_PAGE;
> <html>
> ...
> <body background="tlo.gif">
> ...
> WEB_PAGE
>
> ale nie działa
> Będę wdzięczny za podpowiedź.
sprobuj tak:
#!/usr/bin/perl
$/ = undef;
open(GIF, "/path/pic.gif");
$gif = <GIF>;
close GIF;
print "Content-type: image/gif\n\n$gif";
pozdrawiam
---------------------------+---------------------------------
Krzysztof 'Lovely' Gmyr | Glosujcie na Internetowa
| Liste Przebojow
gmyr@umt.ipl.net
ICQ: 2506363 http://www.tarnow.ipl.net/~gmyr/lista/
---------------------------+---------------------------------
Technical Details
Message-ID:
<34904571.40285B5A@umt.ipl.net>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!news.onet.pl!agh.edu.pl!not-for-mailReferences:
<348FA2D8.3670@cuprum.com.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!news.onet.pl!agh.edu.pl!not-for-mail From: Krzysztof Gmyr <gmyr@umt.ipl.net> Newsgroups: pl.comp.lang.perl Subject: Re: grafika Date: Thu, 11 Dec 1997 20:56:33 +0100 Organization: City Hall ofTarnow Lines: 39 Message-ID: <34904571.40285B5A@umt.ipl.net> References: <348FA2D8.3670@cuprum.com.pl> NNTP-Posting-Host: dial5.tcig.tarnow.pl Mime-Version: 1.0 X-Mailer: Mozilla 4.01 [en] (Win95; I) X-Priority: 3 (Normal) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit