hi costin

On 11/17/05, Costin Leau <[EMAIL PROTECTED]> wrote:
> Hello everybody,
>
> I have some questions related to streams (binary values) and jcr
> session.
> From my tests I've seen that I can work with the stream from the
> repository even after the session initially returning it has been
> close it. However in my case it was just a small file and the returned
> stream was a ByteArrayInputStream - what happens for bigger files
> (xxMBs)? Will the content still be loaded inside a ByteArrayStream (i.e. 
> memory)
> or not?

the data of files which are smaller than a certain threshold are kept in memory
for performance reasons. streams of bigger files are always backed by real
resources.

take a look at the implementation of the jackrabbit-internal class
BLOBFileValue.
this should answer all your questions.

cheers
stefan

> And if not, what happens if the session is closed? or even worst,
> another session modifies the property while the initial stream is opened and
> used?
>
> --
> Best regards,
>  Costin Leau                          mailto:[EMAIL PROTECTED]
>
>
  • jcr stream Costin Leau
    • Re: jcr stream Stefan Guggisberg

Reply via email to