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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to