X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 37F5FD1E00D for ; Fri, 28 May 2004 17:42:43 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 20535-02 for ; Fri, 28 May 2004 17:42:41 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id A6473D1E033 for ; Fri, 28 May 2004 13:51:19 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i4SGpJSx072381 for ; Fri, 28 May 2004 16:51:19 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i4SGedS5057069 for pgsql-sql@postgresql.org; Fri, 28 May 2004 16:40:39 GMT From: jarednevans@yahoo.com (Jared Evans) X-Newsgroups: comp.databases.postgresql.sql Subject: Re: not really SQL but I need info on BLOBs Date: 28 May 2004 09:40:39 -0700 Organization: http://groups.google.com Lines: 17 Message-ID: <72cbb5b4.0405280840.48e8af69@posting.google.com> References: <20040505151003.63773.qmail@web41004.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.5 tagged_above=0.0 required=5.0 tests=FORGED_YAHOO_RCVD X-Spam-Level: X-Archive-Number: 200405/229 X-Sequence-Number: 17943 I did something similar- a web application for online employer picture directory along with dynamic graphical output of the desk locations throughout the company (using the GD package). I kept the pictures in a separate directory and used links in the database. I set up a DB trigger that took care of the respective picture if an employer left. It worked great and was fantastic from a performance perspective. The only reason I could come up with keeping images in the DB as BLOBs is if you developed a specialized function that would do actual image analysis on the pictures themselves. For example, flagging certain images after weeding out faces of terrorists in a picture of a crowd of random people. But what do I know, I don't work at the Department of Homeland Security :-) Jared