perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maurice McCabe" <mmcc...@orbsoft.com>
Subject using embpcgi.pl & reading images from database
Date Tue, 10 Jun 2003 23:48:37 GMT
The following code works when called using mod_perl. It does not work when
calling via embpcgi.pl. 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,
$fdat{'couponid'});
	$req_rec->content_type('$mimeType');
	# Sending the right header
      $escmode = 0;
	# No HTML escaping
      print OUT $couponImage;
-]

Is there another way to read an image from a database that is compatable
with embpcgi.pl?

Thanks,

Maurice


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message