Add Database Retrieval Control


Think about dding an dbimage control to pull blob images from a db. Have it be, <lbn:dbimage /> and make it extensible to allow a user to override the loading mechanism.


You will need to pull the blob information out of the database and convert it to an image. Then set the path the image as the url for the control. Here's an example:
Use an HTTP handler (imgdb.ashx) to pull the data from the db.
Write the content to the OutputStream property of the handler's Http response.
For lbn image control definition, set the path to the url <lbn:image imageurl="imgdb.ashx?imgId=1234" />. The imgId query parameter is used to pull the correct image from the db.
That's just an idea. However, it's not a bad idea to have a dbimage control to have lbn do the work for you... I'll add it as a feature!


wrote Feb 15, 2007 at 10:14 PM

Associated with changeset 18484.

wrote Mar 28, 2007 at 6:30 PM

tlwlc wrote Mar 28, 2007 at 6:33 PM

This would be GREAT! I really need it for an e-commerce application to show more pictures of products.

wrote Jul 2, 2007 at 8:03 PM

wrote Feb 13, 2013 at 9:54 PM