jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wdlcs <willy.delacruzsie...@gmail.com>
Subject Re: download binary content
Date Tue, 11 Dec 2007 19:11:23 GMT

Thank you very much Fabián...

Fabián Mandelbaum wrote:
> 
> I've answered another post that is related to this one I think.
> 
> For "download URL" I understand something like:
> 
> /full/path/to/jcr/node/having/the/bin/content/property/jcr:content/jcr:data
> 
> which may not work at all, because I think that the (only) way to get
> content out of the repo is with the small code excerpt I've wrote on the
> answer I've mentionned at the beginning, something like:
> 
> 1) get the node having the content
> 2) get the content resource property
> 3) get the resource stream and copy the (input) stream to an output stream
> 4) done.
> 
> I hope this answers your question.
> 
> wdlcs escribió:
>> Hi Michael...what I mean is that having a jcr:content node with a
>> jcr:data
>> property (binary content in this property: images,zip files,etc) in the
>> content respository , how could I get the download URL for this binary
>> content through JCR/Jackrabbit?
>>
>> Thanks in advance.
>>
>>
>>
>>
>> Michael Wechner wrote:
>>   
>>> wdlcs wrote:
>>>
>>>     
>>>> Hi all, I would like to know it's possible to get the download URL of a
>>>> binary content in the content repository, 
>>>>
>>>>       
>>> you mean adding images, zip files, etc to the repository through 
>>> JCR/Jackrabbit?
>>>
>>>
>>> Cheers
>>>
>>> Michael
>>>
>>>     
>>>> (My repository content is a
>>>> PostgreSQL database).
>>>>  
>>>>
>>>>       
>>>     
>>>> Thanks in advance.
>>>>  
>>>>
>>>>       
>>> -- 
>>> Michael Wechner
>>> Wyona      -   Open Source Content Management - Yanel, Yulup
>>> http://www.wyona.com
>>> michael.wechner@wyona.com, michi@apache.org
>>> +41 44 272 91 61
>>>
>>>
>>>
>>>     
>>
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/download-binary-content-tp14260127p14280864.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message