------------------------------------------------
On Wed, 27 Aug 2003 14:30:41 -0700, Scott Taylor <[EMAIL PROTECTED]> wrote:
> At 11:52 AM 08/27/2003, Dan Muey wrote:
>
> > > 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 :(
>
Sounds like you have already printed another Content-Type header. Check again and
make sure you aren't printing two headers.
http://danconia.org
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]