Thomas Kellerer wrote:
> Brad Milne wrote on 07.04.2009 23:34:
>> For completeness, here is the setter again with a couple of fixes:
> Do not use availabe()
> This will *not* give you the number of bytes that are "available" in
> the stream.
> Read the Javadocs carefully: it will give you the number of bytes that
> can be /read without blocking/
> Most of the time this will not be the length of the stream.
Good point Thomas, I hear you. I shouldn't have written that hear as
others could follow that. In my implementation it is ok as the stream is
complete prior to persisting it. I have an AudioInputStream object, but
it is always complete. If you think I should be therefore using a
different method/db object then I'd be pleased to hear.
In response to
pgsql-jdbc by date
|Next:||From: Kris Jurka||Date: 2009-04-08 02:16:46|
|Subject: Re: Array passing|
|Previous:||From: Thomas Kellerer||Date: 2009-04-07 21:41:53|
|Subject: Re: BLOB help - yes I've read around!|