Talk About Network

Google





Data Bases > Pgsql Interfaces Jdbc > Re: BLOB is rea...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 1945 of 2101
Post > Topic >>

Re: BLOB is read into memory instead of streaming (bug?)

by rengels@[EMAIL PROTECTED] (robert engels) May 1, 2008 at 06:49 PM

That's good to know.

The spec allows BLOBs to be read using getBytes() and getBinaryStream 
() as well.

getBinaryStream should allow bytea to be read without allocating an  
array to hold all of the data.

BUT, the low-level db protocol would need to sup****t reading the  
column in chunks.

On May 1, 2008, at 6:44 PM, Kris Jurka wrote:

>
>
> robert engels wrote:
>> This seems like a very bad impl - at least for JDBC.
>> Why are the details of this access not hidden in the JDBC driver?  
>> The column type is the only thing that a user should be concerned  
>> with.
>> Why would someone want to code proprietary Postgres code just to  
>> access BLOBs?
>> The JDBC blob API is very good. Using either the BLOB/locator  
>> interface or the getInputStream();
>
> I think you've misunderstood me.  The do***entation shows using a  
> proprietary API, but get/setBlob works just fine.  I pointed to the  
> do***entation because it explains some of the differences between  
> the bytea and large object datatypes.  It's really that the  
> do***entation needs an additional example for the standard blob usage.
>
> Kris Jurka
>


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
 




 3 Posts in Topic:
Re: BLOB is read into memory instead of streaming (bug?)
rengels@[EMAIL PROTECTED]  2008-05-01 15:27:26 
Re: BLOB is read into memory instead of streaming (bug?)
jurka@[EMAIL PROTECTED]   2008-05-01 17:44:34 
Re: BLOB is read into memory instead of streaming (bug?)
rengels@[EMAIL PROTECTED]  2008-05-01 18:49:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 20:24:18 PST 2009.