-
1. Re: Best Practice: Outputting image resources?
cosmo May 27, 2009 7:31 PM (in response to brandonsimpson)For everybody who is, was or will be in your situation, there is a good read outthere:
My Link -
2. Re: Best Practice: Outputting image resources?
gus888 May 27, 2009 9:16 PM (in response to brandonsimpson)Very good article! In the real world, does anyone know where (filesystem or database) Flickr and Youtube save their images and videos? Thanks.
-
3. Re: Best Practice: Outputting image resources?
gonorrhea May 27, 2009 10:20 PM (in response to brandonsimpson)<s:graphicImage id="image1" value="#{equipmentDetailBean.webSmallImage ne null ? equipmentDetailBean.webSmallImage : equipmentDetailBean.noImage}"/>
We are reading from DB table via stored proc and loading the data into a DTO (EquipmentDetailBean).
We are using three different columns to store different sizes/resolutions for each pic, as required.
I believe it is possible to use @Lob on your JPA entity method rather than using stored proc to get the byte[].
Works fine so far in dev...
-
4. Re: Best Practice: Outputting image resources?
mdesignz May 27, 2009 11:17 PM (in response to brandonsimpson)I do the image scaling on the fly rather than keeping n copies for each size / resolution. I originally was keeping images in the database, but have now added JCR (Apache Jackrabbit) -- which still keeps things in a database, but I access it through the repository.
@Lob works just fine in the database (MySQL and Oracle at least).
-
5. Re: Best Practice: Outputting image resources?
sam53parva Jun 16, 2009 10:34 AM (in response to brandonsimpson)I need some sample example how Jackrabbit can be used with seam.....for content repository