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

From Oleg Broytmann
Subject Re: [GENERAL] How to display stored image on web page?
Date
Msg-id Pine.SOL2.3.96.SK.990115123017.24176H-100000@sun.med.ru
Whole thread Raw
In response to How to display stored image on web page?  (Bernie <bfb@att.net>)
List pgsql-general
Hello!

On Thu, 14 Jan 1999, 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.

   Looks like you show ID instead of the very image. To pass an image you
should export it from database first as large object. Look into large
objects docs...

Oleg.
----
    Oleg Broytmann  National Research Surgery Centre  http://sun.med.ru/~phd/
           Programmers don't die, they just GOSUB without RETURN.


pgsql-general by date:

Previous
From: Gilles Darold
Date:
Subject: Re: [GENERAL] How to display stored image on web page?
Next
From: Kaare Rasmussen
Date:
Subject: VIEW's on UNION's