Re: [GENERAL] How to display stored image on web page?

From: Gilles Darold <darold(at)neptune(dot)fr>
To: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] How to display stored image on web page?
Date: 1999-01-15 09:01:36
Message-ID: 369F03F0.65F1A4DD@neptune.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oleg Broytmann 1999-01-15 09:31:59 Re: [GENERAL] How to display stored image on web page?
Previous Message Kaare Rasmussen 1999-01-15 07:43:08 VIEW's on UNION's