Subject | Re: Resettable FBBlobInputStream? |
---|---|
Author | robert_difalco |
Post date | 2003-09-28T22:01:14Z |
It isn't possible to seek back? If not, maybe I could just make an
input stream that wraps the current FBBlobInputStream stream (or
just the blob). If a mark/reset is made, I can just open a new blob
and discard the old handle. Do you think that would work?
R.
--- In Firebird-Java@yahoogroups.com, "Roman Rokytskyy"
<rrokytskyy@a...> wrote:
input stream that wraps the current FBBlobInputStream stream (or
just the blob). If a mark/reset is made, I can just open a new blob
and discard the old handle. Do you think that would work?
R.
--- In Firebird-Java@yahoogroups.com, "Roman Rokytskyy"
<rrokytskyy@a...> wrote:
> > Not possible. For some reasons server does not allow seekingback the
> > stream.not
>
> Ups, sorry... Seems that I was to fast. I am sure that server does
> allow seeking back the output stream. You have to check the input(see
> stream. Current version of the driver in CVS exports method seek
> org.firebirdsql.jdbc.FirebirdBlob interface), and there are alreadyinterfaces
> test cases that you can easily extend.
>
> It it works, than just add reset() method to corresponding
> and implementation that would call seek(...) internally.
>
> Roman