X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 02E4DD1B16E for ; Thu, 24 Jun 2004 16:16:52 -0300 (ADT) 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 56069-02 for ; Thu, 24 Jun 2004 19:16:42 +0000 (GMT) Received: from web40707.mail.yahoo.com (web40707.mail.yahoo.com [66.218.78.164]) by svr1.postgresql.org (Postfix) with SMTP id 4B089D1B267 for ; Thu, 24 Jun 2004 16:16:39 -0300 (ADT) Message-ID: <20040624191640.84897.qmail@web40707.mail.yahoo.com> Received: from [200.163.192.124] by web40707.mail.yahoo.com via HTTP; Thu, 24 Jun 2004 16:16:40 ART Date: Thu, 24 Jun 2004 16:16:40 -0300 (ART) From: "=?iso-8859-1?q?Eduardo=20S.=20Fontanetti?=" Subject: Insert binary data on postgre To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=4.6 tagged_above=0.0 required=5.0 tests=RCVD_IN_DSBL, RCVD_IN_NJABL, RCVD_IN_NJABL_PROXY, RCVD_IN_SORBS, RCVD_IN_SORBS_HTTP, RCVD_IN_SORBS_SOCKS X-Spam-Level: **** X-Archive-Number: 200406/328 X-Sequence-Number: 13988 How can I do to put a file into the PostgreSQL ? I have got the contents of file in binary yet and put on a String on my APP, but when I try to insert it on postgre, it returns to me: ERROR: parser: unterminated quoted string at or near "BMæ»' at character 90 My string: ConnP.Execute "insert into fotossocios(arquivo) values('" & Conteudo & "')" Could somebody help me how to construct the right string ? Thanks Eduardo ______________________________________________________________________ Yahoo! Mail - agora com 100MB de espaço, anti-spam e antivírus grátis! http://br.info.mail.yahoo.com/