There is a DataSourceResourceLoader. Also, there is a StringResourceLoader, if you turn your template into a String and add it to a StringResourceRepository.
Finally, if you don't need any caching, you could skip the resource loader stuff and just use the Velocity.evaluate(...) method to directly parse and render your template. On Fri, Feb 27, 2009 at 2:54 AM, Remigijus B <bau...@gmail.com> wrote: > Hi Everyone > > Is it possible to create org.apache.velocity.Template class from InputStream > or byte array. > I'm using Velocity for my db application for label generation. My velocity > templates comes from db blob field, not from file. It's not wise to flash > everything to file just to make use of velocity. > > Regards Remigijus Bauzys > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: general-unsubscr...@velocity.apache.org > For additional commands, e-mail: general-h...@velocity.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: general-unsubscr...@velocity.apache.org For additional commands, e-mail: general-h...@velocity.apache.org