Re: [GENERAL] How to display stored image on web page? - Mailing list pgsql-general

From Gilles Darold
Subject Re: [GENERAL] How to display stored image on web page?
Date
Msg-id 369F03F0.65F1A4DD@neptune.fr
Whole thread Raw
In response to How to display stored image on web page?  (Bernie <bfb@att.net>)
List pgsql-general
Hi,

You just have to use the read() function directly into your image field.
I think
there is an example into the documentation, perhaps the programmers
guide ?
If not I can send you a perl script which is doing this kind of stuff!

Regards,

Bernie wrote:

> Now that I've stored several jpg's in my
> database as large objects, I'm trying to
> display them on a web page using a java servlet.
> Im my servlet, I've changed the content type
> to image/jpeg - response.setContentType("image/jpg");
> When the web page is loaded, all I see is the ID
> number of the image.  How do you display the
> stored image on the web page?  An example in ANY
> language would be appreciated.
>
> -Thanks




pgsql-general by date:

Previous
From: Tim Williams
Date:
Subject: Re: [GENERAL] Graphics Supported?
Next
From: Oleg Broytmann
Date:
Subject: Re: [GENERAL] How to display stored image on web page?