Subject | Re: InputStream Closed |
---|---|
Author | Roman Rokytskyy |
Post date | 2003-06-20T21:00:51Z |
> Cool. I guess if that is the case, if I am careful to always closeHmmm... Not sure. Result set will not survive commit, but I do not
> or commit transactions then there is no need for me to explicitly
> close the result set.
know if this will release server resources, it should. Anyway,
according to the JDBC spec result set is automatically closed when the
statement is closed. Since statement closing is quite good idea :),
result set will be usually closed earlier.
> >> What you can do, is to fetch the blob field (rs.getBlob), then closeNo, connection must be open and have an active transaction, result set
> >> the result set (here the blob is closed, i.e. all open input streams
> >> are closed) and only then obtain input stream from the Blob. I
> haven't
> >> tried this, but it should work.
>
> This will reconnect to the database and reengage the blob data?
might be closed. In fact, result set contains only blob ID, all work
with blob is done via separate API. JayBird hides this difference on
JDBC level, but sometimes it might be useful to work with blob directly.
Roman