pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eduardo S. Fontanetti <dufuzzy@yahoo.com.br>
To: pgsql-admin@postgresql.org
Subject: Insert binary data on postgre
Date: Thu, 24 Jun 2004 16:16:40 -0300 (ART)
Message-ID: <20040624191640.84897.qmail@web40707.mail.yahoo.com> (raw)

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/



view thread (9+ messages)  latest in thread

Message-ID: <20040624191640.84897.qmail@web40707.mail.yahoo.com>
Permalink:  ../20040624191640.84897.qmail@web40707.mail.yahoo.com/
Also on:    postgresql.org/message-id/20040624191640.84897.qmail@web40707.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: dufuzzy@yahoo.com.br
  Subject: Re: Insert binary data on postgre
  In-Reply-To: <20040624191640.84897.qmail@web40707.mail.yahoo.com>
  References: <20040624191640.84897.qmail@web40707.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox