jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: How add file in jackrabbit repository
Date Fri, 08 Mar 2013 09:09:40 GMT
Hi,

On Fri, Mar 8, 2013 at 10:50 AM, shahidiqbal <snowstormuser@gmail.com> wrote:
> I am new in jackrabbit i want to add the file in jackrabbit repository.

Depends on how you're accessing the repository.

If via WebDAV, then you can mount the repository as a shared disk and
simply copy files into it.

If via the JCR API, then the easiest way is to use the
JcrUtils.putFile() utility method [1].

[1] http://jackrabbit.apache.org/api/2.4/org/apache/jackrabbit/commons/JcrUtils.html#putFile(javax.jcr.Node,
java.lang.String, java.lang.String, java.io.InputStream)

BR,

Jukka Zitting

Mime
View raw message