jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sascha Rodekamp <sascha.rodekamp.lynx...@googlemail.com>
Subject Re: Storing (Image) Files in Webroot
Date Thu, 09 Jun 2011 10:27:55 GMT
Hi Alex,

jep i already did this by streaming. But for me a better way is a direct
access to the content (espacially images), that i don't have the whole
server round trip.

2011/6/9 Alexander Klimetschek <aklimets@adobe.com>

> On 09.06.11 09:29, "Sascha Rodekamp"
> <sascha.rodekamp.lynx.de@googlemail.com> 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


Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message