On 09.06.11 09:29, "Sascha Rodekamp" <[email protected]> wrote: >I upload holidayImage.jpg to /images/holiday/holidayImage.jpg the >repository >will store it in >${rep.home}/datastore/74/98/7/74987derfgtrfdsdeerrgtgffdfd >(something like that). >This path is unusable for my front end, when i try to load <img >src="/images/holiday/holidayImage.jpg" />, it can't work.
Why not? You can use the JCR API to stream through the image binary for that path. Since that is so common, there is the Jackrabbit Webdav servlet, but even better, Apache Sling as a web application framework on top of JCR that does this automatically for you and a ton of other nice things to render JCR content: http://sling.apache.org >So i want to tell the repository, that it should store my files under >${rep.home}/datastore/images/holiday/holidayImage.jpg. Is their a way to >implement such functionality? That is the wrong route for many reasons. One is that the Datastore has the concept of storing binaries by hash so the objects are immutable and if you have the same binary multiple times in the JCR under different paths, it's only stored once. Regards, Alex -- Alexander Klimetschek Developer // Adobe (Day) // Berlin - Basel
