This content has been marked as final.
Show 2 replies
-
1. Re: Beginner: retrieving a file from the Repository
rhauch Feb 19, 2013 10:34 AM (in response to mylos78)No, you cannot retrieve the BINARY property values via query row results. If you are using queries to find the "nt:file" or "nt:resource" nodes (based upon some criteria), you can use the JCR API to get the actual Node objects that correspond to the query row results, and from there you can get the named property, its BINARY value, and the value's InputStream.
However, if you're just trying to get a particular BINARY value at some path, it's far more efficient to simply navigate to the Node and get the property's BINARY value (and its InputStream).
UPDATE: I've added a "Reading the content" section to the Storing files and folders page.
-
2. Re: Beginner: retrieving a file from the Repository
mylos78 Feb 19, 2013 10:39 AM (in response to rhauch)Thanks!!!
Everything looks quite clear now!
Regards
Mylos