List:General Discussion« Previous MessageNext Message »
From:<unknown Date:May 23 1999 2:01am
Subject:Re: mysql, perl and IMG({src=>/cgi-bin ...} - a question
View as plain text  
This may seem like a stupid answer, but are you printing the proper
content-type header?  If you don't know what I'm talking about, try
putting this at the top of pict.pl:

print "content-type: image/gif\n\n";

(or jpeg instead of gif).

---
tani hosokawa
river styx internet


On Sun, 23 May 1999, Hermann-Marcus Behrens wrote:

> Hello,
> 
> **this is more a perl question, than a mysql-question
> 
> i'm using perl with the latest mysql-db. i stored images in the mysql-db
> without any problem. I have a problem, writing the correct html/perl code,
> to show these images embeded in a html-page. The code looks like this:
> img({src=>"/cgi-bin/pict.pl?id=number"})
> The perl-script then makes a SELECT and prints the raw, retrieved data. And
> this is not working for me. i allways get the broken picture symbol. Do i
> have to write a specific html-tag first, or do i have to change the data, i
> selected?
> 
> thanks in advance,
> 
>  Hermi
> 
> 
> ---------------------------------------------------------------------
> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
> posting. To request this thread, e-mail mysql-thread3762@stripped
> 
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail mysql-unsubscribe@stripped instead.
> 

Thread
mysql, perl and IMG({src=>/cgi-bin ...} - a questionHermann-Marcus Behrens23 May
  • Re: mysql, perl and IMG({src=>/cgi-bin ...} - a questionunknown23 May