-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hi,
if performance is really critical for you, a cache proxy like varnish will most likely help more. cheers,david Am 09.06.2011 12:27, schrieb Sascha Rodekamp: > 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 <[email protected]> > >> 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 >> >> >> >> >> > > - -- Liip AG // Agile Web Development // T +41 26 422 25 11 CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk35s48ACgkQqBnXnqWBgIu6VwCggXEkMLHv2PeewhAXS/L/w2qD QAcAniGY+E1p0D/7VryyKAF/AlNG61Qj =snc7 -----END PGP SIGNATURE-----
