Skip site navigation (1) Skip section navigation (2)

Problem with LargeObjects (client code attached)

From: "Rajesh Balla" <bnrajesh(at)lycos(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Problem with LargeObjects (client code attached)
Date: 2001-04-20 14:36:45
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Problem with LargeObjects

When I used 
the following exception was thrown by the driver: postgresql.fp.error

This exception is being thrown by the fastpath function of the Fastpath class as a result of the call fp.fastpath("lowrite",false,args) in LargeObject's "write" method.
What is the reason for this error?
What is the solution?

Thank you very much,

this is the client code:

String query = new String("insert into objectidtest values (?,?)");

outPStmt = dbConnect.prepareStatement(queryString);
        String imageName = new String("X:/14.gif" );
        File file = new File(imageName);
        FileInputStream fis = new FileInputStream(file);
        byte[] image = new byte[(int)file.length()];;
        //Blob b = new byte[(int)file.length()];

Get 250 color business cards for FREE!

pgsql-jdbc by date

Next:From: nusaDate: 2001-04-20 23:46:33
Subject: HELP : Can't load JDBC driver !
Previous:From: Rajesh BallaDate: 2001-04-20 14:28:47
Subject: Problem using LargeObjects

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group