I've found bytea works better for me than large objects. As far as how to retrieve and display, that depends. What scripting language are you using? > -----Original Message----- > From: pgsql-general-owner@postgresql.org > [mailto:pgsql-general-owner@postgresql.org]On Behalf Of C G > Sent: Monday, April 05, 2004 12:20 PM > To: pgsql-general@postgresql.org > Subject: Storing jpgs > > > Dear All, > > What's the best way to store jpgs in postgresql to use in a web page? > > I tried to use large objects, but how would you extract them from > a table to > be viewed in a web-page without having to write them to a scratch file > somewhere first? > > Thanks > > Colin > > _________________________________________________________________ > Stay in touch with absent friends - get MSN Messenger > http://www.msn.co.uk/messenger > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > > ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match