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

From: Oleg Broytmann <phd(at)sun(dot)med(dot)ru>
To: Bernie <bfb(at)att(dot)net>
Cc: PostgreSQL- general <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] How to display stored image on web page?
Date: 1999-01-15 09:31:59
Message-ID: Pine.SOL2.3.96.SK.990115123017.24176H-100000@sun.med.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Memphisto 1999-01-15 14:10:18 Representation of big integer numbers.
Previous Message Gilles Darold 1999-01-15 09:01:36 Re: [GENERAL] How to display stored image on web page?