perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kee Hinckley <>
Subject Re: using & reading images from database
Date Wed, 11 Jun 2003 00:35:42 GMT
At 4:48 PM -0700 6/10/03, Maurice McCabe wrote:
>The following code works when called using mod_perl. It does not work when
>calling via Does anyone have a suggestion why?
>	use DBI;
>	use ZIPLoc;
>	$dbh = DBI->connect("DBI:mysql:locator", "root", "") || die 
>"Can't connect:
>	($couponImage, $mimeType) = ZIPLoc::getCouponImage($dbh,
>	$req_rec->content_type('$mimeType');

Assome that your problem is there.  Is there a request record without Apache?
Try using $http_headers_out{CONTENT-TYPE} instead.
Kee Hinckley          Anti-Spam Service for your POP Account   Writings on Technology and Society

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message