Re: wrong documentation and others ..... - Mailing list pgsql-interfaces

From Gabriel Lopez
Subject Re: wrong documentation and others .....
Date
Msg-id 39DC67BF.A28489A2@dif.um.es
Whole thread Raw
In response to wrong documentation and others .....  (Gabriel Lopez <gabilm@dif.um.es>)
List pgsql-interfaces
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





pgsql-interfaces by date:

Previous
From: tjm2@mail.ikasths.dk (Troels Jegbjaerg Moerch)
Date:
Subject: Re: wrong documentation and others .....
Next
From: "Clark, Joel"
Date:
Subject: RE: Re: FW: New PostgreSQL Project