On 2013-02-12 16:40, katsu wrote:
Hello,I have the following problem. I am accessing jackrabbit repository via Webdav. Now I would like to add a file node which the content (data) should point to a locally saved file path/URL. E.g. Node fileNode = parentnode.addNode(abc.jpg, "nt:file"); Node resNode = fileNode.addNode("jcr:content", "nt:resource"); resNode.setProperty("jcr:mimeType", mimeType); resNode.setProperty("jcr:encoding", ""); resNode.setProperty("jcr:data", reference to a URL/File Path); And that when I access via Webdav and click on “abc.jpg” I will be redirected to the actual path of abc.jpg (e.g. http://image.com/abc.jpg). How could that be possible? Could be great if someone could give me a hint on that. ...
That would require support for HTTP redirects; I don't think the Jackrabbit WebDAV server has that.
Best regards, Julian
