X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4287DD1B458 for ; Thu, 27 Nov 2003 07:37:15 +0000 (GMT) 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 41389-05 for ; Thu, 27 Nov 2003 03:36:44 -0400 (AST) Received: from ar-sd.net (unknown [81.196.32.112]) by svr1.postgresql.org (Postfix) with ESMTP id 0E97ED1B44A for ; Thu, 27 Nov 2003 03:36:38 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ar-sd.net (Postfix) with ESMTP id EDA2C1D843 for ; Thu, 27 Nov 2003 09:40:35 +0200 (EET) Received: from andy (unknown [192.168.0.11]) by ar-sd.net (Postfix) with SMTP id C91311A8A3 for ; Thu, 27 Nov 2003 09:40:35 +0200 (EET) Message-ID: <006a01c3a826$d62d6a30$0b00a8c0@andy> From: "Andrei Bintintan" To: "[ADMIN]" References: <20031127044308.M16952@oasis.net.au> Subject: Re: pg_lo_import alternative ... Date: Tue, 11 Nov 2003 09:38:43 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/463 X-Sequence-Number: 11450 Hi, We are developing a management software for our clients. This software si already used for a year. The database dump is around 40MB(zipped around 10). Our clients receive every day between 100 - 200 photos(size between 80-200kB). For the moment they have around 30000 photos, the overall size of photos is around 5 GB. We decided that we do not put these photos in the database, we store it on the disk. In the database we store only the "realname" and the "storage path" of the photos and some additional info. Yes it is true, that things may become complicated if a photo is erased or think also to a backup to the photos. But this comes in the hand of the administrator. I tried first also to put the photos in the database, but I gave up on this ideea. I think I have the code "somewhere"... have to search it it's already 1 year old....if somebody needs it just say. Best regards. Andy. ----- Original Message ----- From: "Rudi Starcevic" To: Sent: Thursday, November 27, 2003 6:51 AM Subject: Re: [ADMIN] pg_lo_import alternative ... > Hi, > > > Anyone that that is using Postgres for storage and retrival of > > images please post your experiences. > > I've been very happy with a web application I built which stores > images in Postgresql in text format. I use PHP to base_64 encode > the binary image file into a text string and store that. > > I can send you a PHP class which I use to encode/decode the > images and inserts them into a table. > Email me off list if your keen. > > Cheers > Rudi. > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend