You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by shahidiqbal <sn...@gmail.com> on 2013/03/08 09:50:18 UTC

How add file in jackrabbit repository

Hi,
 I am new in jackrabbit i want to add the file in jackrabbit repository. 

Thanks






--
View this message in context: http://jackrabbit.510166.n4.nabble.com/How-add-file-in-jackrabbit-repository-tp4657895.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: How add file in jackrabbit repository

Posted by shahidiqbal <sn...@gmail.com>.
Thanks for reply 
I want to add file in node using java code



--
View this message in context: http://jackrabbit.510166.n4.nabble.com/How-add-file-in-jackrabbit-repository-tp4657895p4657900.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: How add file in jackrabbit repository

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Fri, Mar 8, 2013 at 10:50 AM, shahidiqbal <sn...@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