> On Wednesday, August 27, 2003, at 12:50 PM, Scott Taylor wrote: > > > Hello all, > > Howdy. > > > I have a database with JPEGs stored in a blob field and I want to > > display them on an HTML web page with out creating a new > file.jpg for > > each connection. > >
<snip>
> > > > Any direction, documentation, script examples, etc. would be great. >
<snip>
use CGI qw(header);
use DBI;
my $dbh = ...
print header('image/jpeg');
my($jpegguts) = $dbh->selectrow_array('SELECT jpegguts FROM myimg WHERE id = 35');
print $jpegguts;
HTH
It's a start, but it gives me the output like:
Content-Type: image/jpeg and a bunch of garbled-gook :(
Cheers.
Scott.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]