pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gabriel Lopez <gabilm@dif.um.es>
To: psql <pgsql-interfaces@postgresql.org>
Subject: Re: wrong documentation and others .....
Date: Fri, 06 Oct 2000 13:51:26 +0200
Message-ID: <39DDBCBE.BF5F9748@dif.um.es> (raw)
References: <39DC5F29.E9F4023@dif.um.es>
	<004f01c02ebd$8f30a380$97bfedd4@pc4151>
	<39DC67BF.A28489A2@dif.um.es>

Has anybody try this?

 I don't know why this error appear.

    Please, reply me.

    Thanks, Gabi.

Gabriel Lopez escribió:

> Troels Jegbjaerg Moerch escribió:
>
> > Hi try this:    File file = new File("myimage.gif");
> >    FileInputStream fis = new FileInputStream(file);
> >    byte[] theByteArray = new byte[fis.available()];
> >    fis.read(theByteArray);
> >
> >    PreparedStatement ps = con.prepareStatement("insert insert into
> > images values (?,?)");    ps.setString(1,file.getName());
> >    ps.setBytes(2, theByteArray);
> >    ps.execute();
> >    con.commit();
> >    ps.close();
> >    fis.close();
> >    TJM
>
>         Yes, it work fine, but each 9 times it fail:
>
>         FATAL 1:  my bits moved right off the end of the world!
>         Recreate index pg_attribute_relid_attnam_index.
>
>         Anybody known why?
>
>     Thanks
>
> --
> Gabriel López Millán
> Facultad de Informática -Universidad de Murcia
> 30001 Murcia - España (Spain)
> Telf: +34-968-364644 E-mail: gabilm@dif.um.es

--
Gabriel López Millán
Facultad de Informática -Universidad de Murcia
30001 Murcia - España (Spain)
Telf: +34-968-364644 E-mail: gabilm@dif.um.es






view thread (15+ messages)  latest in thread

Message-ID: <39DDBCBE.BF5F9748@dif.um.es>
Permalink:  ../39DDBCBE.BF5F9748@dif.um.es/
Also on:    postgresql.org/message-id/39DDBCBE.BF5F9748@dif.um.es

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: gabilm@dif.um.es
  Subject: Re: wrong documentation and others .....
  In-Reply-To: <39DDBCBE.BF5F9748@dif.um.es>

* 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