Subject Re: Problem with FBBlob
Author mapofe
--- In, "Roman Rokytskyy"
<rrokytskyy@a...> wrote:
> > for some reason that I still must unterstand, my code tries to store
> > 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

Thank you,
actually the bug in my application was that the stream had been
already red, that's why I finished into the endless loop.