X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E487D3A3D05 for ; Tue, 23 Nov 2004 09:30:45 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 74072-05 for ; Tue, 23 Nov 2004 09:30:29 +0000 (GMT) Received: from sharp.noc24x7.com (unknown [69.56.128.138]) by svr1.postgresql.org (Postfix) with ESMTP id 9CC043A3D13 for ; Tue, 23 Nov 2004 09:30:30 +0000 (GMT) Received: from [61.3.110.135] (helo=thenilgiris.com) by sharp.noc24x7.com with esmtpa (Exim 4.43) id 1CWX0G-0002WT-Pb; Tue, 23 Nov 2004 15:00:29 +0530 Received: from localhost (localhost [[UNIX: localhost]]) by thenilgiris.com (8.11.2/8.11.2) id iAN9TTT16213; Tue, 23 Nov 2004 14:59:29 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Kenneth Gonsalves To: "Premsun Choltanwanich" , , Subject: Re: Image Insert Postgresql DB Date: Tue, 23 Nov 2004 14:59:29 +0530 X-Mailer: KMail [version 1.2] References: In-Reply-To: MIME-Version: 1.0 Message-Id: <0411231459290P.01150@thenilgiris.com> Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sharp.noc24x7.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - thenilgiris.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/246 X-Sequence-Number: 19565 On Tuesday 23 November 2004 01:49 pm, Premsun Choltanwanich wrote: > I use VB as develop tool and ADO for connect. My code is show below and > for vPicMember is stand ADOStream in Binary. > > rs.Open "SELECT * FROM t_mbrpic WHERE mbrsysid = " & vSysId, conn, > adOpenStatic, adLockOptimistic > If rs.EOF Then rs.AddNew > rs!MbrSysId = vSysId > rs!MbrPic = vPicMember.Read > rs.Update > rs.Close i use python, and have no idea about ado, this might help: http://gborg.postgresql.org/project/psqlodbc/genpage.php?howto-vblo kg