Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f2DEUcx26643 for ; Tue, 13 Mar 2001 09:30:38 -0500 (EST) (envelope-from pgsql-general-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f2C00Px25625 for ; Sun, 11 Mar 2001 19:00:25 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f2BNl5t74080 for pgsql-general@postgresql.org; Sun, 11 Mar 2001 18:47:05 -0500 (EST) (envelope-from news) From: ryan@paymentalliance.net X-Newsgroups: comp.databases.postgresql.general, comp.databases.postgresql.questions Subject: Re: Data type for storing images? Date: Sun, 11 Mar 2001 18:40:18 GMT Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 31 Message-ID: <3aabc524.433007942@news.postgresql.org> References: <20010311223818.18682.qmail@mailhost.sidereal.kz> X-Complaints-To: scrappy@hub.org X-Newsreader: Forte Free Agent 1.21/32.243 To: pgsql-general@postgresql.org X-Archive-Number: 200103/585 X-Sequence-Number: 6089 I am not sure what your exact purpose is, but in doing a lot of web work with pgsql, I usually just store the full path to the image in a varchar field and fetch that right into the IMG SRC attribute when I need to display the image. I also have modified a simple web based image uploading script so upon uploading an image it detects the images width and height and inserts that into the DB as well. The script is written in PHP, let me know if it would be helpful to send it to you. Good Luck -Ryan Mahoney On Sun, 11 Mar 2001 22:52:53 +0000 (UTC), wrote: > >I would like to store some images in my Postgres database. These will >all be thumbnails, limited to 4k or 5k. I know that PG has an 8k row >limit, but this should be fine, because there's not much else in the >row. Which data type could I use to store them, and is there a >performance cost for having rows that are this big? The system will >be using PG7.1, btw. > >Thanks > > >---------------------------(end of broadcast)--------------------------- >TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org