jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dinesh Dani <dreams.dee...@gmail.com>
Subject Re: Unable to Add the file in Node
Date Sat, 12 Jun 2010 08:30:52 GMT
Thanks a ton for your help.

On Fri, Jun 11, 2010 at 9:28 PM, Jukka Zitting <jukka.zitting@gmail.com>wrote:

> Hi,
>
> On Fri, Jun 11, 2010 at 9:54 AM, Dinesh Dani <dreams.deepak@gmail.com>
> wrote:
> > Does anybody can help me to add the file in a node.I needed this to add
> the
> > file content in a node.It would be great if you can provide the step by
> step
> > method to add the file in a node.
>
> The easiest way to do so is to use the JcrUtils.putFile() methods [1,2].
>
> [1]
> http://jackrabbit.apache.org/api/2.1/org/apache/jackrabbit/commons/JcrUtils.html#putFile(javax.jcr.Node
> ,
> java.lang.String, java.lang.String, java.io.InputStream)
> [2]
> http://jackrabbit.apache.org/api/2.1/org/apache/jackrabbit/commons/JcrUtils.html#putFile(javax.jcr.Node
> ,
> java.lang.String, java.lang.String, java.io.InputStream,
> java.util.Calendar)
>
> BR,
>
> Jukka Zitting
>



-- 
Regards,
Dinesh Dani

Mime
View raw message