Re: reading a file from the jacrabbit repository

2008-11-23 Thread Alexander Klimetschek
On Sun, Nov 23, 2008 at 3:10 PM, far4ever <[EMAIL PROTECTED]> wrote: > thanks a lot for your kind responses . > i was able to find out what went wrong. > the thing was as id i was passing the same name (hard coded) > and when evert time i run the adding part that new node were created( with > index

Re: reading a file from the jacrabbit repository

2008-11-23 Thread far4ever
-file-from-the-jacrabbit-repository-tp20645363p20646570.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: reading a file from the jacrabbit repository

2008-11-23 Thread far4ever
exception... -- View this message in context: http://www.nabble.com/reading-a-file-from-the-jacrabbit-repository-tp20645363p20646278.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: reading a file from the jacrabbit repository

2008-11-23 Thread Julian Reschke
far4ever wrote: yes. InputStream pic = s.getImage("farhath"); // this is the line where this method is invoked if(pic == null) System.out.println(" the file read is null"); and the code in the if condition get executed.. You you please the full code, plus the st

Re: reading a file from the jacrabbit repository

2008-11-23 Thread Alexander Klimetschek
sion.getRootNode(); > Node userfile = root.getNode(id); > Node pic = userfile.getNode("picture"); > Node image = pic.getNode("jcr:content"); > picture = (FileInputStream) > image.getProperty("jcr:data").getValue().getStream(); > if

Re: reading a file from the jacrabbit repository

2008-11-23 Thread far4ever
/reading-a-file-from-the-jacrabbit-repository-tp20645363p20645924.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: reading a file from the jacrabbit repository

2008-11-23 Thread far4ever
ttp://www.nabble.com/reading-a-file-from-the-jacrabbit-repository-tp20645363p20645898.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: reading a file from the jacrabbit repository

2008-11-23 Thread Julian Reschke
far4ever wrote: actually i'm not getting an exception at this point. it s affected in another method when i try to read the inputStream, it throws a nullPointerException So what is "null"? The input stream? BR, Julian

Re: reading a file from the jacrabbit repository

2008-11-23 Thread far4ever
actually i'm not getting an exception at this point. it s affected in another method when i try to read the inputStream, it throws a nullPointerException -- View this message in context: http://www.nabble.com/reading-a-file-from-the-jacrabbit-repository-tp20645363p20645582.html Sent fro

Re: reading a file from the jacrabbit repository

2008-11-23 Thread Julian Reschke
far4ever wrote: hi i added an image to the repository but when i tried to get it back i wont get it. instead i seems to be null.. What exactly is null? The stream? Are you getting an exception? > ... picture = (FileInputStream) image.getProperty("jcr:data").getValue().getStream(); .

reading a file from the jacrabbit repository

2008-11-23 Thread far4ever
erfile.getNode("picture"); Node image = pic.getNode("jcr:content"); picture = (FileInputStream) image.getProperty("jcr:data").getValue().getStream(); if(picture == null) System.out.println("errorr in reading the file");