Hi,

the method ValueFactory.createBinary(InputStream) should not store
the data from the stream in memory. It will stream it either into
a temporary file or into the configured data store implementation.

How does your Jackrabbit configuration look like? I.e. what persistence
manager and data store implementation do you use?

Regards
 Marcel

On 19/03/15 08:32, "Rohit Tiwari" <[email protected]> wrote:

>Hi,
>
>
>We are developing our Electronic Document Management System in which we
>have used Apache Jackrabbit for the storage and management of documents.
>
>For the development of this project we have used Spring framework of java
>programming language. In case of big size file upload (like above 1 GB)
>we are sending file in chunks to the Spring controller from where I will
>have to receive all chunks and combine
> them.
>
>I use the code given below to create a binary object out of
>InputStream(isss named variable). Being a large file the binary object
>occupies the space in memory and there is a exception thrown for heap
>size.
>
>ValueFactory valueFactory = jcrsession.getValueFactory();
>Binary myBinary = valueFactory.createBinary(isss);
>
>
>// adding binary to jcr:node.
>
>Node resNode = file.addNode("edms:content", "edms:resource");
>resNode.setProperty("jcr:data",myBinary);
>
>
>Can we continue sending the file chunks mentioned above to the jackrabbit
>library and assemble it later inside the jcr node. Please suggest a way
>to do so or if there is a problem with my approach.
>
>-- 
>We look forward to a long and fruitful association with you.
>
>Thanks and Regards
>Rohit Tiwari
>Software Engineer
>Address: Silvereye IT Solutions  Pvt. Ltd.,
>Flat no-8, Greenwood Apartment,
>22 Gokhale Marg, Lucknow - 226001,
>Uttar Pradesh
>Call  us @: +91-522-3079644, +91-8874513737
>Visit us @:  www.silvereye.co
><http://www.google.com/url?q=http%3A%2F%2Fwww.silvereye.co&sa=D&sntz=1&usg
>=AFQjCNEkmf2lpjcs1nZBAD2YV2lQ3jGqDw>
>
>
>

Reply via email to