Ok thanks a lot!

2010/12/9 Igor Drobiazko <igor.drobia...@gmail.com>

> There is no documentation for it as this is not an often use case. However,
> just provide you own implementation of AsssetFactory, build it or bind it
> in
> your module and make the contribution:
>
>    public void contributeAssetSource(MappedConfiguration<String,
> AssetFactory> configuration, @InjectService("DbAssetFactory") AssetFactory
> dbAssetFactory) {
>        configuration.add("db", dbAssetFactory);
>    }
>
> Now it is up to you to implement the AssetFactory.
>
> On Thu, Dec 9, 2010 at 11:53 AM, Gunnar Eketrapp
> <gunnar.eketr...@gmail.com>wrote:
>
> > Hi!
> >
> > I would like to store uploaded images in the database and then use them
> in
> >  template files.
> >
> > Are there any examples of how to do this? I.e. how to define a new
> > AssetFactory and contribute it to the AssetSource service configuration.
> >
> > Thanks in advance,
> > Gunnar Eketrapp (from a very cold and snowy Stockholm)
> >
> > ==================================
> > The doc says ...
> >
> > New Asset Domains
> >
> > If you wish to create new domains for assets, for example to allow assets
> > to
> > be stored on the file system or in a database, you may define a new
> > AssetFactory and contribute it to the AssetSource service configuration.
> >
> > ===================================
> >
>
>
>
> --
> Best regards,
>
> Igor Drobiazko
> http://tapestry5.de
>



-- 
[Hem: 08-715 59 57, Mobil: 0708-52 62 90]
Allévägen 2A, 132 42 Saltsjö-Boo

Reply via email to