Subject | Re: Problem with FBBlob |
---|---|
Author | mapofe |
Post date | 2004-03-29T09:10:27Z |
--- In Firebird-Java@yahoogroups.com, "Roman Rokytskyy"
<rrokytskyy@a...> wrote:
actually the bug in my application was that the stream had been
already red, that's why I finished into the endless loop.
Regards
Massimo
<rrokytskyy@a...> wrote:
> > for some reason that I still must unterstand, my code tries to storeThank you,
> > an empty blob. But this is not the point. Debugging the application I
> > saw FBBlob.copyStream and noticed a potential problem: if (in the
> > while loop) chunk is < 0 (as in my case), this results in an infinite
> > loop as there is no check.
>
> One observation: if you would specify length correctly, it would work.
> Endless loop occurs only when specified length is greater than number
> of bytes in the stream.
>
> But thanks for the report again. Tested and fixed.
>
> Roman
actually the bug in my application was that the stream had been
already red, that's why I finished into the endless loop.
Regards
Massimo